Contents

Snapshot

The type representing the document’s content after reading.

Declaration

associatedtype Snapshot

Discussion

This can be any type: a String, a custom struct, or even the document type itself. SwiftUI delivers it to apply(snapshot:previous:) on the main actor after reading completes.

See Also

Reading a document