Instance Methodswift-composable-architecture 1.18.0ComposableArchitecture
reduce(into:action:)
OnChange.swift:149func reduce(into state: inout Base.State, action: Base.Action) -> Effect<Base.Action>
func reduce(into state: inout Base.State, action: Base.Action) -> Effect<Base.Action>
s22ComposableArchitecture16_OnChangeReducerV6reduce4into6actionAA6EffectVy6ActionQzG5StateQzz_AJtF
What are these?2QG22
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 _OnChangeReducer<Base, Value, Body> where Base : Reducer, Body : Reducer, Base.Action == Body.Action, Base.State == Body.State
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>