ActionBinding

@propertyWrapper
public struct ActionBinding<Value>
extension ActionBinding: Equatable where Value: Equatable

Binds a value with an action. Use the ActionBinder to create an action binding.

  • Projects to a regular binding when using the ‘$’ prefix.

    Declaration

    Swift

    public var projectedValue: Binding<Value>
  • The current value of the binding.

    Declaration

    Swift

    @inlinable
    public var wrappedValue: Value { get set }
  • Returns a regular binding.

    Declaration

    Swift

    public func toBinding() -> Binding<Value>

    Return Value

    The binding.

Available where Value: Equatable

  • Declaration

    Swift

    @inlinable
    public static func == (lhs: ActionBinding<Value>, rhs: ActionBinding<Value>) -> Bool