Instance Subscriptswift-composable-architecture 1.18.0ComposableArchitecture
subscript(dynamicMember:)
Binding.swift:455@MainActor subscript<Value>(dynamicMember keyPath: KeyPath<State, Value>) -> Value { get }
@MainActor subscript<Value>(dynamicMember keyPath: KeyPath<State, Value>) -> Value { get }
s22ComposableArchitecture16BindingViewStoreV13dynamicMemberqd__s7KeyPathCyxqd__G_tcluip
What are these?493EN
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).
@dynamicMemberLookup @propertyWrapper @preconcurrency @MainActor struct BindingViewStore<State>
A property wrapper type that can derive BindingViewState
values for a ViewStore
.
@globalActor final actor MainActor
A singleton actor whose executor is equivalent to the main dispatch queue.
class KeyPath<Root, Value>
A key path from a specific root type to a specific resulting value type.
@MainActor init(projectedValue: Self)
@MainActor var projectedValue: Self { get set }
@MainActor var wrappedValue: State { get }
@MainActor subscript<Value>(dynamicMember keyPath: WritableKeyPath<State, BindingState<Value>>) -> BindingViewState<Value> where Value : Equatable, Value : Sendable { get }