<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DocumentWriter/Snapshot",
  "metadataVersion" : "0.1.0",
  "role" : "Associated Type",
  "symbol" : {
    "kind" : "Associated Type",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI14DocumentWriterP8SnapshotQa"
  },
  "title" : "Snapshot"
}
-->

# Snapshot

The type representing the document’s content to write.

```
associatedtype Snapshot
```

## Discussion

This is the same type returned by
[`snapshot(contentType:)`](/documentation/SwiftUI/WritableDocument/snapshot(contentType:)). It crosses an
actor boundary (from main actor to background), so use `sending`
annotations or make it `Sendable`.

---

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)