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

# AccessoryNotification

A structure that contains the details of a notification that iOS provides to your accessory.

```
struct AccessoryNotification
```

## Overview

The notification includes display elements, metadata, interactive components, and rich content such as icons, attachments, and Apple Intelligence summaries.

## Topics

### Creating a notification

[`init(identifier:sourceName:deliveryDate:displayDate:title:subtitle:body:threadIdentifier:attributes:summary:actions:sourceIcon:contextIcon:attachments:)`](/documentation/AccessoryNotifications/AccessoryNotification/init(identifier:sourceName:deliveryDate:displayDate:title:subtitle:body:threadIdentifier:attributes:summary:actions:sourceIcon:contextIcon:attachments:))

Initializes an accessory notification.

### Displaying notification content

[`title`](/documentation/AccessoryNotifications/AccessoryNotification/title)

A primary text for the notification.

[`subtitle`](/documentation/AccessoryNotifications/AccessoryNotification/subtitle)

Secondary text for the notification.

[`body`](/documentation/AccessoryNotifications/AccessoryNotification/body)

A string that contains the notification’s main content.

[`summary`](/documentation/AccessoryNotifications/AccessoryNotification/summary)

An Apple Intelligence summary for the notification.

### Working with notification attributes

[`attributes`](/documentation/AccessoryNotifications/AccessoryNotification/attributes-swift.property)

A set of attributes that indicate the notification’s priority level.

[`Attributes`](/documentation/AccessoryNotifications/AccessoryNotification/Attributes-swift.struct)

Attributes that display priority for a notification.

### Accessing related media

[`attachments`](/documentation/AccessoryNotifications/AccessoryNotification/attachments)

An array of files sent with the notification.

[`sourceIcon`](/documentation/AccessoryNotifications/AccessoryNotification/sourceIcon)

An icon that represents the app that sent the notification.

[`contextIcon`](/documentation/AccessoryNotifications/AccessoryNotification/contextIcon)

A secondary icon that provides additional contextual information about the notification.

[`File`](/documentation/AccessoryNotifications/AccessoryNotification/File)

A file associated with a notification.

### Identifying and grouping notifications

[`identifier`](/documentation/AccessoryNotifications/AccessoryNotification/identifier-swift.property)

A structure that uniquely identifies the notification.

[`Identifier`](/documentation/AccessoryNotifications/AccessoryNotification/Identifier-swift.struct)

A structure that uniquely identifies a notification.

[`threadIdentifier`](/documentation/AccessoryNotifications/AccessoryNotification/threadIdentifier)

An identifier that groups notifications that belong to the same thread.

[`sourceName`](/documentation/AccessoryNotifications/AccessoryNotification/sourceName)

A display name for the bundle that sent the notification.

### Working with notification dates

[`deliveryDate`](/documentation/AccessoryNotifications/AccessoryNotification/deliveryDate)

A timestamp that indicates when the system received the notification.

[`displayDate`](/documentation/AccessoryNotifications/AccessoryNotification/displayDate-swift.property)

A preferred date and format to display with the notification.

[`DisplayDate`](/documentation/AccessoryNotifications/AccessoryNotification/DisplayDate-swift.enum)

Options for displaying a date in a notification.

### Handling user interactions

[`actions`](/documentation/AccessoryNotifications/AccessoryNotification/actions)

An array of possible interactions that a person can have with the notification.

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

A possible user interaction with a notification.

## Relationships

### Conforms To

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

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

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

---

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)