Required Associated Typeswift-composable-architecture 1.18.0ComposableArchitecture
Action
CaseReducer.swift:8associatedtype Action = Self.Action
associatedtype Action = Self.Action
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 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 Action
A type that holds all possible actions that cause the State
of the reducer to change and/or kick off a side Effect
that can communicate with the outside world.
associatedtype Body = Self.Body
associatedtype CaseScope
associatedtype State = Self.State
@ReducerBuilder<Self.State, Self.Action> static var body: Body { get }
@preconcurrency @MainActor static func scope(_ store: Store<State, Action>) -> CaseScope