Instance Method
インスタンスメソッド
accessibilityFocused(_:equals:)
Modifies this view by binding its accessibility element’s focus state to the given state value.
Return Value
戻り値
The modified view.
Parameters
パラメータ
binding
The state binding to register. When accessibility focus moves to the accessibility element of the modified view, SwiftUI sets the bound value to the corresponding match value. If you set the state value programmatically to the matching value, then accessibility focus moves to the accessibility element of the modified view. SwiftUI sets the value to nil
if accessibility focus leaves the accessibility element associated with the modified view, and programmatically setting the value to nil
dismisses focus automatically.
value
The value to match against when determining whether the binding should change.
See Also
参照
Focus
struct AccessibilityFocusState
A property wrapper type that can read and write a value that SwiftUI updates as the focus of any active accessibility technology, such as VoiceOver, changes.