Instance Subscriptswift-composable-architecture 1.18.0ComposableArchitecture
subscript(id:)
StackReducer.swift:297subscript(id id: StackElementID) -> AnyCasePath<StackAction, Action> { get }
subscript(id id: StackElementID) -> AnyCasePath<StackAction, Action> { get }
s22ComposableArchitecture11StackActionO12AllCasePathsV2id0fG4Core03AnyF4PathVyACyxq_Gq_GAA0C9ElementIDV_tcip
What are these?7H3LM
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 AllCasePaths
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
.
@dynamicMemberLookup struct AnyCasePath<Root, Value>
A type-erased case path that supports embedding a value in a root and attempting to extract a root’s embedded value.
var element: AnyCasePath<StackAction, (id: StackElementID, action: Action)> { get }
var popFrom: AnyCasePath<StackAction, StackElementID> { get }
var push: AnyCasePath<StackAction, (id: StackElementID, state: State)> { get }