Instance Propertyswift-composable-architecture 1.18.0ComposableArchitecture
content
SwitchStore.swift:78- iOS
- deprecated
- macOS
- deprecated
- tvOS
- deprecated
- watchOS
- deprecated
@MainActor let content: (State) -> Content
@MainActor let content: (State) -> Content
s22ComposableArchitecture11SwitchStoreV7contentyq0_xcvp
What are these?3O8PD
import ComposableArchitecture
The Composable Architecture (TCA, for short) is a library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. It can be used in SwiftUI, UIKit, and more, and on any Apple platform (iOS, macOS, tvOS, and watchOS).
@MainActor struct SwitchStore<State, Action, Content> where Content : View
A view that observes when enum state held in a store changes cases, and provides stores to CaseLet
views.
@globalActor final actor MainActor
A singleton actor whose executor is equivalent to the main dispatch queue.
@MainActor init(_ store: Store<State, Action>, @ViewBuilder content: @escaping (_ initialState: State) -> Content)
@MainActor var body: some View { get }
@MainActor let store: Store<State, Action>