Skip to content

Commit

Permalink
Last tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mischreiber committed Jan 29, 2025
1 parent cc3b6e9 commit c62a907
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion Sources/FluentUI_macOS/Core/ControlHostingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c62a907

Please sign in to comment.