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 (URLDocumentConfiguration, DocumentCreationContext) async throws -> Document)Parameters
- viewer:
The viewing UI for the provided document.