Wrapper

@dynamicMemberLookup
public struct Wrapper

A wrapper of the underlying ObservableObject that can create Bindings to its properties using dynamic member lookup.

  • Creates a Binding to a value semantic property of a reference type.

    If Value is not value semantic, the updating behavior for any views that make use of the resulting Binding is unspecified.

    Declaration

    Swift

    public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<ObjectType, Subject>) -> Binding<Subject> { get }