Instance Method インスタンスメソッド

accessibilityFocused(_:equals:)

Modifies this view by binding its accessibility element’s focus state to the given state value.

Declaration 宣言

func accessibilityFocused<Value>(_ binding: AccessibilityFocusState<Value>.Binding, equals value: Value) -> some View where Value : Hashable

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