<!--
{
  "availability" : [
    "macOS: 10.1.0 - 10.10.0"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/accessibilityAttributeValue(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)accessibilityAttributeValue:"
  },
  "title" : "accessibilityAttributeValue(_:)"
}
-->

# accessibilityAttributeValue(_:)

Returns the value of the specified attribute in the receiver.

```
func accessibilityAttributeValue(_ attribute: NSAccessibility.Attribute) -> Any?
```

## Parameters

`attribute`

The name of the attribute. See <doc://com.apple.documentation/documentation/AppKit/nsaccessibility> constants for lists of attribute names.

## Discussion

User interface classes must implement this method. Subclasses should invoke the superclass’s implementation, if it exists, if `attribute` is not implemented in the subclass.

---

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)