<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAccessibility-c.protocol/accessibilityElement",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSAccessibility(py)accessibilityElement"
  },
  "title" : "accessibilityElement"
}
-->

# accessibilityElement

A Boolean value that determines whether the accessibility element participates in the accessibility hierarchy.

```
@property (getter=isAccessibilityElement) BOOL accessibilityElement;
```

## Discussion

Use this property to expose this object to accessibility clients as a functional interface element. For example, when you place a button in a window, the system typically creates a button cell inside a button control inside a container view inside a window. Users, however, don’t care about the view hierarchy details. They should only be told that there’s a button in a window.

If this property is set to <doc://com.apple.documentation/documentation/Swift/false>, accessibility clients ignore this element. By default, `NSView` and its subclasses set this value to <doc://com.apple.documentation/documentation/Swift/false>; however, if your `NSView` subclass adopts one of the accessibility protocols, the system changes the default value to <doc://com.apple.documentation/documentation/Swift/true>.

## See Also

[`NSAccessibilityUnignoredDescendant`](/documentation/AppKit/NSAccessibility-swift.struct/unignoredDescendant(of:))

Returns an unignored accessibility object, descending the hierarchy, if necessary.

[`NSAccessibilityUnignoredAncestor`](/documentation/AppKit/NSAccessibility-swift.struct/unignoredAncestor(of:))

Returns an unignored accessibility object, ascending the hierarchy, if necessary.

[`NSAccessibilityUnignoredChildrenForOnlyChild`](/documentation/AppKit/NSAccessibility-swift.struct/unignoredChildrenForOnlyChild(from:))

Returns a list of unignored accessibility objects, descending the hierarchy, if necessary.

[`NSAccessibilityUnignoredChildren`](/documentation/AppKit/NSAccessibility-swift.struct/unignoredChildren(from:))

Returns a list of unignored accessibility objects, descending the hierarchy, if necessary.



---

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)