---
title: kAXRoleAttribute
framework: applicationservices
role: symbol
role_heading: Global Variable
path: applicationservices/kaxroleattribute
---

# kAXRoleAttribute

The role, or type, of this accessibility object (for example, AXButton). This string is for identification purposes only and does not need to be localized. All accessibility objects must include this attribute.

## Declaration

```swift
var kAXRoleAttribute: String { get }
```
