Skip to content

Commit

Permalink
Use MainActor for navigation setup (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Apr 23, 2024
1 parent a04990a commit 3df40e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/FluidStack/ViewController/FluidViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ extension FluidViewController {

public let navigationBarClass: UINavigationBar.Type

let _activityHandler: (Activity<UINavigationBar>) -> Void
let _activityHandler: @MainActor (Activity<UINavigationBar>) -> Void

/// Initializer
///
Expand All @@ -446,7 +446,7 @@ extension FluidViewController {
displayMode: DisplayMode = .automatic,
usesBodyViewController: Bool = true,
navigationBarClass: NavigationBar.Type,
activityHandler: @escaping (Activity<NavigationBar>) -> Void = { _ in }
activityHandler: @escaping @MainActor (Activity<NavigationBar>) -> Void = { _ in }
) {
self.displayMode = displayMode
self.usesBodyViewController = usesBodyViewController
Expand Down

0 comments on commit 3df40e8

Please sign in to comment.