Contents

document

The current document model.

Declaration

@ObservedObject<Document> @MainActor @preconcurrency var document: Document { get set }

Discussion

Changes to the document dirty the document state, indicating that it needs to be saved. SwiftUI doesn’t automatically register undo actions.

See Also

Getting and setting the document