---
title: SnapshotData
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/snapshotdata
---

# SnapshotData

The associated data of a snapshot background task.

## Declaration

```swift
struct SnapshotData
```

## Topics

### Getting the data

- [identifier](swiftui/snapshotdata/identifier.md)
- [reason](swiftui/snapshotdata/reason.md)
- [SnapshotData.SnapshotReason](swiftui/snapshotdata/snapshotreason.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Handling background tasks

- [backgroundTask(_:action:)](swiftui/scene/backgroundtask(_:action:).md)
- [BackgroundTask](swiftui/backgroundtask.md)
- [SnapshotResponse](swiftui/snapshotresponse.md)
