---
title: "init(identifier:title:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nsusernotificationaction/init(identifier:title:)"
---

# init(identifier:title:)

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

## Declaration

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

## Parameters

- `identifier`: The identifier for the action.
- `title`: A localized string suitable for display to the user.
