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

# accessibilityPerformAction(_:)

Performs the action associated with the specified action.

```
func accessibilityPerformAction(_ action: NSAccessibility.Action)
```

## Parameters

`action`

The action to perform.

## Discussion

User interface classes must implement this method to handle all the actions returned from [`accessibilityActionNames()`](/documentation/ObjectiveC/NSObject-swift.class/accessibilityActionNames()). Subclasses should invoke the superclass’s implementation, if it exists, if `action` 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)