var wrappedValue : ObjectType
The underlying value referenced by the state object.
Availability 有効性
Technology
var projectedValue: ObservedObject
<ObjectType >.Wrapper
{ get }
Use the projected value to pass a binding value down a view hierarchy.
投影値を使って、バインディング値をビュー階層に通達してください。
To get the projected value, prefix the property variable with $
. For example, you can get a binding to a model’s is
Boolean so that a Toggle
view can control the value:
struct MyView: View {
var model = DataModel()
var body: some View {
Toggle("Enabled", isOn: $model.isEnabled)
}
}
var wrappedValue : ObjectType