Required Associated Typeswift-composable-architecture 1.18.0ComposableArchitecture
StateReducer
CaseReducer.swift:31associatedtype StateReducer : CaseReducer where Self == Self.StateReducer.State
associatedtype StateReducer : CaseReducer where Self == Self.StateReducer.State
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).
protocol CaseReducerState
A state type that is associated with a CaseReducer
.
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.
associatedtype State
A type that holds the current state of the reducer.