Skip to content

Commit aa54dfe

Browse files
authored
Add Sendable (#177)
1 parent 3df40e8 commit aa54dfe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/FluidStack/ViewController/FluidViewController.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,16 +413,16 @@ extension FluidViewController {
413413
}
414414
}
415415

416-
public enum TopBar {
416+
public enum TopBar: Sendable {
417+
418+
public struct Navigation: Sendable {
417419

418-
public struct Navigation {
419-
420420
public enum Activity<NavigationBar: UINavigationBar> {
421421
case didLoad(FluidViewController, NavigationBar)
422422
case willTransition(FluidViewController, StackingRelation?, NavigationBar)
423423
}
424424

425-
public enum DisplayMode {
425+
public enum DisplayMode: Sendable {
426426
/// It shows `UINavigationBar` if the target navigation-item has items (title, left items, right items).
427427
case automatic
428428
/// It shows always `UINavigationBar`.
@@ -436,7 +436,7 @@ extension FluidViewController {
436436

437437
public let navigationBarClass: UINavigationBar.Type
438438

439-
let _activityHandler: @MainActor (Activity<UINavigationBar>) -> Void
439+
let _activityHandler: @Sendable @MainActor (Activity<UINavigationBar>) -> Void
440440

441441
/// Initializer
442442
///

0 commit comments

Comments
 (0)