Required Static Propertyswift-composable-architecture 1.18.0ComposableArchitecture
body
CaseReducer.swift:13@ReducerBuilder<Self.State, Self.Action> static var body: Body { get }
@ReducerBuilder<Self.State, Self.Action> static var body: Body { get }
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.
@resultBuilder enum ReducerBuilder<State, Action>
A result builder for combining reducers into a single reducer by running each, one after the other, and merging their effects.
associatedtype State
A type that holds the current state of the reducer.
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 Action = Self.Action
associatedtype CaseScope
associatedtype State = Self.State
@preconcurrency @MainActor static func scope(_ store: Store<State, Action>) -> CaseScope
var body: Body { get }