~=(_:_:)
Binding+Observation.swift:72static func ~= <Value>(keyPath: WritableKeyPath<Root, Value>, bindingAction: Self) -> Bool where Root : ObservableState
static func ~= <Value>(keyPath: WritableKeyPath<Root, Value>, bindingAction: Self) -> Bool where Root : ObservableState
s22ComposableArchitecture13BindingActionV2teoiySbs15WritableKeyPathCyxqd__G_ACyxGtAA15ObservableStateRzlFZ
What are these?55ZGS
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 BindingAction<Root>
An action that describes simple mutations to some root state at a writable key path.
class WritableKeyPath<Root, Value>
A key path that supports reading from and writing to the resulting value.
@frozen struct Bool
A value type whose instances are either true
or false
.
protocol ObservableState : Perceptible
static var allCasePaths: AllCasePaths { get }
static func set<Value>(_ keyPath: _SendableWritableKeyPath<Root, BindingState<Value>>, _ value: Value) -> BindingAction<Root> where Value : Equatable, Value : Sendable
Returns an action that describes simple mutations to some root state at a writable key path to binding state.
static func set<Value>(_ keyPath: _SendableWritableKeyPath<Root, Value>, _ value: Value) -> BindingAction<Root> where Root : ObservableState, Value : Equatable, Value : Sendable
var customDumpDescription: String { get }
let keyPath: _SendablePartialKeyPath<Root>
static func == (lhs: Self, rhs: Self) -> Bool
static func ~= <Value>(keyPath: WritableKeyPath<Root, BindingState<Value>>, bindingAction: Self) -> Bool
Matches a binding action by its key path.
@dynamicMemberLookup struct AllCasePaths