---
title: identifier
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkattachment/identifier
---

# identifier

The universally unique identifier for the attached file.

## Declaration

```swift
var identifier: UUID { get }
```

## See Also

### Accessing attachment data

- [name](healthkit/hkattachment/name.md)
- [contentType](healthkit/hkattachment/contenttype.md)
- [size](healthkit/hkattachment/size.md)
- [creationDate](healthkit/hkattachment/creationdate.md)
- [metadata](healthkit/hkattachment/metadata.md)
- [HKAttachment.AsyncBytes](healthkit/hkattachment/asyncbytes.md)
