From c62a907dfc8e9edd7bffa99abfb2228fa3b9e281 Mon Sep 17 00:00:00 2001 From: Mike Schreiber Date: Wed, 29 Jan 2025 11:00:06 -0800 Subject: [PATCH] Last tweaks --- .../MultilinePillPicker/MultilinePillPickerView.swift | 2 +- Sources/FluentUI_macOS/Core/ControlHostingView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/FluentUI_macOS/Components/MultilinePillPicker/MultilinePillPickerView.swift b/Sources/FluentUI_macOS/Components/MultilinePillPicker/MultilinePillPickerView.swift index 5d94f6ae4..db88a985f 100644 --- a/Sources/FluentUI_macOS/Components/MultilinePillPicker/MultilinePillPickerView.swift +++ b/Sources/FluentUI_macOS/Components/MultilinePillPicker/MultilinePillPickerView.swift @@ -42,7 +42,7 @@ public final class MultilinePillPickerView: ControlHostingView, ObservableObject @MainActor @Published public var labels: [String] @MainActor @Published public var action: (@MainActor (Int) -> Void)? - @MainActor private var viewModel: MultilinePillPickerViewModel = .init() + @MainActor private let viewModel: MultilinePillPickerViewModel = .init() } /// Maps properties from `MultilinePillPickerView` to `MultilinePillPickerViewWrapper`. diff --git a/Sources/FluentUI_macOS/Core/ControlHostingView.swift b/Sources/FluentUI_macOS/Core/ControlHostingView.swift index a870c30fc..fd6d2ee35 100644 --- a/Sources/FluentUI_macOS/Core/ControlHostingView.swift +++ b/Sources/FluentUI_macOS/Core/ControlHostingView.swift @@ -22,7 +22,7 @@ open class ControlHostingView: NSView { /// the control view in an `AnyView.` /// /// - Parameter controlView: An `AnyView`-wrapped component to host. - /// - Parameter safeAreaRegions: Passthrough to the respective property on UIHostingController. + /// - Parameter safeAreaRegions: Passthrough to the respective property on NSHostingView. /// Indicates which safe area regions the underlying hosting controller should add to its view. public init(_ controlView: AnyView, safeAreaRegions: SafeAreaRegions = .all) { hostingView = NSHostingView.init(rootView: controlView)