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).
@attached(member, names: named(State), named(Action), named(init), named(body), named(CaseScope), named(scope)) @attached(memberAttribute) @attached(extension, conformances: Reducer, CaseReducer) macro Reducer(state: _SynthesizedConformance..., action: _SynthesizedConformance...)
An overload of Reducer
that takes a description of protocol conformances to synthesize on the State and Action types
protocol CaseReducer<State, Action> : Reducer where Self.Action == Self.Body.Action, Self.Body : Reducer, Self.State : CaseReducerState, Self.State == Self.Body.State
A reducer represented by multiple enum cases.