<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/accessibilityFocused(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE20accessibilityFocusedyQrAA23AccessibilityFocusStateV7BindingVySb_GF"
  },
  "title" : "accessibilityFocused(_:)"
}
-->

# accessibilityFocused(_:)

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

```
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 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.

## Return Value

The modified view.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)