Skip to content

Commit 8b53ebe

Browse files
author
Šimon Šesták
committed
Mark TabViewFlow init as @mainactor
1 parent bc19b1b commit 8b53ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FuturedArchitecture/Architecture/TabViewFlow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public struct TabViewFlow<Coordinator: TabCoordinator, Content: View>: View {
1111
/// - coordinator: The instance of the coordinator used as the model and retained as the ``SwiftUI.StateObject``
1212
/// - content: The definition of tabs held by this TabView should be placed into this ViewBuilder. You are required to use instances of `Tab`
1313
/// type as tags of the views. For an example refer to the template.
14-
public init(coordinator: @autoclosure @escaping () -> Coordinator, @ViewBuilder content: @escaping () -> Content) {
14+
public init(coordinator: @autoclosure @escaping () -> Coordinator, @ViewBuilder content: @MainActor @escaping () -> Content) {
1515
self._coordinator = StateObject(wrappedValue: coordinator())
1616
self.content = content
1717
}

0 commit comments

Comments
 (0)