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 ForEachStore<EachState, EachAction, Data, ID, Content> where Data : Collection, ID : Hashable, ID : Sendable, Content : View
A Composable Architecture-friendly wrapper around ForEach
that simplifies working with collections of state.
@preconcurrency @MainActor init<EachContent>(_ store: Store<IdentifiedArray<ID, EachState>, IdentifiedAction<ID, EachAction>>, @ViewBuilder content: @escaping (_ store: Store<EachState, EachAction>) -> EachContent) where Data == IdentifiedArray<ID, EachState>, Content == WithViewStore<IdentifiedArray<ID, EachState>, IdentifiedAction<ID, EachAction>, ForEach<IdentifiedArray<ID, EachState>, ID, EachContent>>, EachContent : View
Initializes a structure that computes views on demand from a store on a collection of data and an identified action.