---
title: accessibilityElementIsFocused()
framework: objectivec
role: symbol
role_heading: Instance Method
path: objectivec/nsobject-swift.class/accessibilityelementisfocused()
---

# accessibilityElementIsFocused()

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

## Declaration

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

## Return Value

Return Value YES if an assistive technology is virtually focused on the element; otherwise, NO.

## See Also

### Getting focus information

- [accessibilityElementDidBecomeFocused()](objectivec/nsobject-swift.class/accessibilityelementdidbecomefocused().md)
- [accessibilityElementDidLoseFocus()](objectivec/nsobject-swift.class/accessibilityelementdidlosefocus().md)
- [accessibilityAssistiveTechnologyFocusedIdentifiers()](objectivec/nsobject-swift.class/accessibilityassistivetechnologyfocusedidentifiers().md)
