ReadableDocument
A type that you use to read documents from file.
Declaration
protocol ReadableDocument : AnyObjectOverview
To create a read-only document type, conform to ReadableDocument and implement the required methods and properties. For a read-write document, also conform to WritableDocument, or use the Document typealias.
Your implementation:
Provides readable content types via readableContentTypes.
Loads documents from file using a DocumentReader returned by reader(configuration:).
Applies loaded content to your model via apply(snapshot:previous:).
Topics
Reading a document
readableContentTypesReadableDocument.ReadConfigurationReaderreader(configuration:)apply(snapshot:previous:)