<!--
{
  "availability" : [
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SnapshotData/SnapshotReason",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12SnapshotDataV0C6ReasonO"
  },
  "title" : "SnapshotData.SnapshotReason"
}
-->

# SnapshotData.SnapshotReason

The reason for a background snapshot task.

```
enum SnapshotReason
```

## Topics

### Getting the snapshot reasons

[`case appBackgrounded`](/documentation/SwiftUI/SnapshotData/SnapshotReason/appBackgrounded)

The app transitioned from the foreground to the background.

[`case appScheduled`](/documentation/SwiftUI/SnapshotData/SnapshotReason/appScheduled)

The app scheduled this snapshot.

[`case complicationUpdate`](/documentation/SwiftUI/SnapshotData/SnapshotReason/complicationUpdate)

The app updated the complication timeline.

[`case prelaunch`](/documentation/SwiftUI/SnapshotData/SnapshotReason/prelaunch)

The system needs a snapshot for the dock, but the app has not been launched yet.

[`case returnToDefaultState`](/documentation/SwiftUI/SnapshotData/SnapshotReason/returnToDefaultState)

It has been more than an hour since the user’s last interaction
with the app; the app’s snapshot should return to its default state.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

---

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)