Instance Methodswift-composable-architecture 1.18.0ComposableArchitecture
reduce(into:action:)
ReducerBuilder.swift:115func reduce(into state: inout R0.State, action: R0.Action) -> Effect<R0.Action>
func reduce(into state: inout R0.State, action: R0.Action) -> Effect<R0.Action>
s22ComposableArchitecture14ReducerBuilderO9_SequenceV6reduce4into6actionAA6EffectVy6ActionQyd__G5StateQyd__z_ALtF
What are these?K0OP
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).
struct _Sequence<R0, R1> where R0 : Reducer, R1 : Reducer, R0.Action == R1.Action, R0.State == R1.State
@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.
struct Effect<Action>