<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/accessibilityElementIsFocused()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)accessibilityElementIsFocused"
  },
  "title" : "accessibilityElementIsFocused()"
}
-->

# accessibilityElementIsFocused()

Returns a Boolean value indicating whether an assistive technology is focused on the accessibility element.

```
@MainActor func accessibilityElementIsFocused() -> Bool
```

## Return Value

[`YES`](/documentation/ObjectiveC/YES) if an assistive technology is virtually focused on the element; otherwise, [`NO`](/documentation/ObjectiveC/NO).

## Discussion

---

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)