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

# accessibilityRole

The type of interface element that the accessibility element represents.

```
@property (copy, nullable) NSAccessibilityRole accessibilityRole;
```

## Discussion

This property contains a nonlocalized string that defines the element’s role in the app. For a list of possible roles, see `Roles`. This property is set automatically when you adopt one of the accessibility protocols.

---

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)