<!--
{
  "availability" : [
    "macOS: 10.10.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSUserNotificationAction/init(identifier:title:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSUserNotificationAction(cm)actionWithIdentifier:title:"
  },
  "title" : "init(identifier:title:)"
}
-->

# init(identifier:title:)

Creates a user notification action with a specified identifier and title.

```
convenience init(identifier: String?, title: String?)
```

## Parameters

`identifier`

The identifier for the action.

`title`

A localized string suitable for display to the user.

---

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)