ActionBinding

@propertyWrapper
public struct ActionBinding<Value>
extension ActionBinding: 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

    @inlinable
    public func toBinding() -> Binding<Value>

    Return Value

    The binding.

  • Declaration

    Swift

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