sending(_:)

Creates a binding to the value by sending new values through the given action.

Binding+Observation.swift:336
iOS
obsoleted
macOS
obsoleted
tvOS
obsoleted
visionOS
unavailable
watchOS
obsoleted
@preconcurrency @MainActor func sending(_ action: CaseKeyPath<Action, Value>) -> Binding<Value>

Parameters

action

An action for the binding to send values through.

Returns

A binding.