<!--
{
  "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/accessibilityElementDidLoseFocus()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)accessibilityElementDidLoseFocus"
  },
  "title" : "accessibilityElementDidLoseFocus()"
}
-->

# accessibilityElementDidLoseFocus()

Sent after an assistive technology has removed its virtual focus from an accessibility element.

```
@MainActor func accessibilityElementDidLoseFocus()
```

## Discussion

Override `accessibilityElementDidLoseFocus` if you need to know when an assistive technology has removed its virtual focus from an accessibility element. Note that `accessibilityElementDidLoseFocus` is sent before [`accessibilityElementDidBecomeFocused()`](/documentation/ObjectiveC/NSObject-swift.class/accessibilityElementDidBecomeFocused()).

---

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)