Skip to content

Commit

Permalink
Merge pull request #35 from futuredapp/feature/Update-TabViewFlow-init
Browse files Browse the repository at this point in the history
Mark TabViewFlow init as @mainactor
  • Loading branch information
ssestak authored Jan 7, 2025
2 parents bc19b1b + 8b53ebe commit 617e4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/FuturedArchitecture/Architecture/TabViewFlow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public struct TabViewFlow<Coordinator: TabCoordinator, Content: View>: View {
/// - coordinator: The instance of the coordinator used as the model and retained as the ``SwiftUI.StateObject``
/// - content: The definition of tabs held by this TabView should be placed into this ViewBuilder. You are required to use instances of `Tab`
/// type as tags of the views. For an example refer to the template.
public init(coordinator: @autoclosure @escaping () -> Coordinator, @ViewBuilder content: @escaping () -> Content) {
public init(coordinator: @autoclosure @escaping () -> Coordinator, @ViewBuilder content: @MainActor @escaping () -> Content) {
self._coordinator = StateObject(wrappedValue: coordinator())
self.content = content
}
Expand Down

0 comments on commit 617e4c5

Please sign in to comment.