Silly me...
func fileWrapper(configuration: WriteConfiguration) throws -> FileWrapper {
let fileContent = try JSONEncoder().encode(self.document)
return FileWrapper(regularFileWithContents: fileContent)
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: