ExportDocument
struct ExportDocument: FileDocument
Define the exported ‘ChordProviderDocument’
-
The type of image to export
Declaration
Swift
static var readableContentTypes: [UTType]
-
The PDF to export
Declaration
Swift
var pdf: Data
-
Init the struct
Declaration
Swift
init(pdf: Data?)
-
Black magic
Declaration
Swift
init(configuration: ReadConfiguration) throws
-
Save the exported PDF
Declaration
Swift
func fileWrapper(configuration: WriteConfiguration) throws -> FileWrapper