From 8b53ebe1fcc541ece180c91224c385da8dfe7f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=CC=8Cimon=20S=CC=8Cesta=CC=81k?= Date: Tue, 7 Jan 2025 11:49:58 +0100 Subject: [PATCH] Mark TabViewFlow init as @MainActor --- Sources/FuturedArchitecture/Architecture/TabViewFlow.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FuturedArchitecture/Architecture/TabViewFlow.swift b/Sources/FuturedArchitecture/Architecture/TabViewFlow.swift index 56c9ce6..b16c8c1 100644 --- a/Sources/FuturedArchitecture/Architecture/TabViewFlow.swift +++ b/Sources/FuturedArchitecture/Architecture/TabViewFlow.swift @@ -11,7 +11,7 @@ public struct TabViewFlow: 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 }