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

# size

The attachment’s size (in bytes).

## Declaration

```swift
var size: Int { get }
```

## See Also

### Accessing attachment data

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