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 Reducer<State, Action>
A protocol that describes how to evolve the current state of an application to the next state, given an action, and describes what Effect
s should be executed later by the store, if any.
static func buildEither<R0, R1>(first reducer: R0) -> _Conditional<R0, R1> where State == R0.State, Action == R0.Action, R0 : Reducer, R1 : Reducer, R0.Action == R1.Action, R0.State == R1.State
static func buildEither<R0, R1>(second reducer: R1) -> _Conditional<R0, R1> where State == R0.State, Action == R0.Action, R0 : Reducer, R1 : Reducer, R0.Action == R1.Action, R0.State == R1.State