Enumeration Caseswift-composable-architecture 1.18.0ComposableArchitecture
element(id:action:)
An action sent to the associated stack element at a given identifier.
indirect case element(id: StackElementID, action: Action)
An action sent to the associated stack element at a given identifier.
indirect case element(id: StackElementID, action: Action)
s22ComposableArchitecture11StackActionO7elementyACyxq_GAA0C9ElementIDV_q_tcAEmr0_lF
What are these?SGSE
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).
enum StackAction<State, Action>
A wrapper type for actions that can be presented in a navigation stack.
struct StackElementID
An opaque type that identifies an element of StackState
.
case popFrom(id: StackElementID)
An action sent to dismiss the associated stack element at a given identifier.
case push(id: StackElementID, state: State)
An action sent to present the given state at a given identifier in a navigation stack. This action is typically sent from the view via the NavigationLink(value:)
initializer.