reader(configuration:)
Creates a reader to load this document from disk.
Declaration
func reader(configuration: sending Self.ReadConfiguration) -> sending Self.ReaderParameters
- configuration:
The content type of the file being read.
Discussion
SwiftUI calls this method each time it needs to read or re-read the document (on open, or when another process changes the file). Return a FileWrapperDocumentReader for cases that don’t require custom reading logic, or a DocumentReader for direct URL access.