The key path for the focus value to read.
Initializer
init(_:)
A new property wrapper for the given key path.
与えられたキーパスに対する新しいプロパティラッパー。
Availability 有効性
- iOS 14.0+
- iPadOS 14.0+
- macOS 11.0+
- Mac Catalyst 14.0+
- tvOS 14.0+
- watchOS 7.0+
Technology
- Swift
UI
Declaration 宣言
init(_ keyPath: KeyPath
<FocusedValues
, Binding
<Value>?>)
Parameters パラメータ
keyPath
Discussion 議論
The value of the property wrapper is updated dynamically as focus changes and different published bindings go in and out of scope.