set(_:_:)
Binding+Observation.swift:60static func set<Value>(_ keyPath: _SendableWritableKeyPath<Root, Value>, _ value: Value) -> BindingAction<Root> where Root : ObservableState, Value : Equatable, Value : Sendable
static func set<Value>(_ keyPath: _SendableWritableKeyPath<Root, Value>, _ value: Value) -> BindingAction<Root> where Root : ObservableState, Value : Equatable, Value : Sendable
s22ComposableArchitecture13BindingActionV3setyACyxGs8Sendable_s15WritableKeyPathCyxqd__GXc_qd__tAA15ObservableStateRzSQRd__sAFRd__lFZ
What are these?2LQHQ
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.
typealias _SendableWritableKeyPath<Root, Value> = any WritableKeyPath<Root, Value> & Sendable
protocol ObservableState : Perceptible
protocol Equatable
A type that can be compared for value equality.
protocol Sendable
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.
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.
static func ~= <Value>(keyPath: WritableKeyPath<Root, Value>, bindingAction: Self) -> Bool where Root : ObservableState
@dynamicMemberLookup struct AllCasePaths