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

# AccessoryNotification.File

A file associated with a notification.

```
struct File
```

## Overview

The [`AccessoryNotification`](/documentation/AccessoryNotifications/AccessoryNotification) structure’s [`attachments`](/documentation/AccessoryNotifications/AccessoryNotification/attachments), [`sourceIcon`](/documentation/AccessoryNotifications/AccessoryNotification/sourceIcon), and [`contextIcon`](/documentation/AccessoryNotifications/AccessoryNotification/contextIcon) properties use this type.

## Topics

### Accessing file data

[`var url: URL`](/documentation/AccessoryNotifications/AccessoryNotification/File/url)

A URL that locates the file’s data.

### Determining the file type

[`var type: UTType`](/documentation/AccessoryNotifications/AccessoryNotification/File/type)

A uniform type identifier for the file.

## 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)