accessibilityFocused(_:)
Modifies this view by binding its accessibility element’s focus state to the given boolean state value.
Declaration
nonisolated func accessibilityFocused(_ condition: AccessibilityFocusState<Bool>.Binding) -> some 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 totrueprogrammatically, then accessibility focus will move to accessibility element of the modified view. The value will be set tofalseif accessibility focus leaves the accessibility element of the modified view, and accessibility focus will be dismissed automatically if the value is set tofalseprogrammatically.
Return Value
The modified view.