---
title: url
framework: usernotifications
role: symbol
role_heading: Instance Property
path: usernotifications/unnotificationattachment/url
---

# url

The URL of the file for this attachment.

## Declaration

```swift
var url: URL { get }
```

## Discussion

Discussion The file at the specified URL is security scoped to your app. Before you access it, call the startAccessingSecurityScopedResource() method of NSURL.

## See Also

### Getting the Attachment Contents

- [identifier](usernotifications/unnotificationattachment/identifier.md)
- [type](usernotifications/unnotificationattachment/type.md)
