Instance Method
インスタンスメソッド
accessibilityFocused(_:)
Modifies this view by binding its accessibility element’s focus state to the given boolean state value.
Return Value
戻り値
The modified view.
Parameters
パラメータ
condition
The accessibility focus state to bind. When accessibility focus moves to the accessibility element of the modified view, the focus value is set to true
. If the value is set to true
programmatically, then accessibility focus will move to accessibility element of the modified view. The value will be set to false
if accessibility focus leaves the accessibility element of the modified view, and accessibility focus will be dismissed automatically if the value is set to false
programmatically.
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.