Wrapper
@dynamicMemberLookup
public struct Wrapper
A wrapper of the underlying ObservableObject
that can create
Binding
s 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 resultingBinding
is unspecified.Declaration
Swift
public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<ObjectType, Subject>) -> Binding<Subject> { get }