associatedtype Snapshot
A type of the document snapshot that can be used for serialization in parallel to the main document being editable.
self
becomes editable by the user.Availability 有効性
Technology
func snapshot(contentType: UTType
) throws -> Self.Snapshot
contentType
The content type being written, for which the snapshot should be created.
When saving a Reference
, edits to the document are blocked until snapshot with a copy of any mutable references can be created. Once the snapshot is created, the document becomes editable in parallel to the snapshot being serialized using write(snapshot:
.
associatedtype Snapshot