<!--
{
  "availability" : [
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SnapshotResponse/init(restoredDefaultState:estimatedSnapshotExpiration:identifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16SnapshotResponseV20restoredDefaultState09estimatedC10Expiration10identifierACSb_10Foundation4DateVSgSSSgtcfc"
  },
  "title" : "init(restoredDefaultState:estimatedSnapshotExpiration:identifier:)"
}
-->

# init(restoredDefaultState:estimatedSnapshotExpiration:identifier:)

Creates a snapshot response.

```
init(restoredDefaultState: Bool = false, estimatedSnapshotExpiration: Date? = nil, identifier: String? = nil)
```

## Parameters

`restoredDefaultState`

Pass `true` if your app has navigated back
to its default launch scene.

`estimatedSnapshotExpiration`

The preferred date and time for the
next background snapshot refresh task. Use
<doc://com.apple.documentation/documentation/Foundation/Date/distantFuture>
if you don’t want to schedule the next refresh.

`identifier`

A custom string to associate with the next
background snapshot refresh task. This value is assigned to the
next snapshot task’s `TaskData` userInfo property. Pass `nil` if you
don’t want to associate any identifier with the next task.

---

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)