Contents

init(viewer:makeReadableDocument:)

Creates a document group capable of opening and viewing read-only documents.

Declaration

nonisolated init(@ContentBuilder viewer: @escaping (Document) -> Content, makeReadableDocument: @escaping @MainActor (URLDocumentConfiguration, DocumentCreationContext) async throws -> Document)

Parameters

  • viewer:

    The viewing UI for the provided document.

See Also

Creating a document group