<!--
{
  "availability" : [
    "iOS: 26.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryNotifications",
  "identifier" : "/documentation/AccessoryNotifications/AccessoryNotification/Action",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accessory Notifications"
    ],
    "preciseIdentifier" : "s:22AccessoryNotifications0A12NotificationV6ActionV"
  },
  "title" : "AccessoryNotification.Action"
}
-->

# AccessoryNotification.Action

A possible user interaction with a notification.

```
struct Action
```

## Topics

### Creating an action

[`init(identifier: String, title: String?, type: AccessoryNotification.Action.ActionType)`](/documentation/AccessoryNotifications/AccessoryNotification/Action/init(identifier:title:type:))

Initializes a notification action with the given identifier, title, and type.

### Identifying an action

[`let identifier: String`](/documentation/AccessoryNotifications/AccessoryNotification/Action/identifier)

A unique identifier for the action.

[`let title: String?`](/documentation/AccessoryNotifications/AccessoryNotification/Action/title)

A title for the action.

### Determining the action type

[`let type: AccessoryNotification.Action.ActionType`](/documentation/AccessoryNotifications/AccessoryNotification/Action/type)

A type for the action.

[`enum ActionType`](/documentation/AccessoryNotifications/AccessoryNotification/Action/ActionType)

The types of actions available for a notification.

## Relationships

### Conforms To

[`Decodable`](/documentation/Swift/Decodable)

[`Equatable`](/documentation/Swift/Equatable)

[`Encodable`](/documentation/Swift/Encodable)

---

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)