ChordProDocument
struct ChordProDocument: FileDocument
The ChordProDocument for Chord Provider
-
The title for a new song
Declaration
Swift
static let newTitle: String = "A new song"
-
The artist for a new song
Declaration
Swift
static let newArtist: String = "A new artist"
-
The document text for a new song
-
The file extensions Chord Provider can open
Declaration
Swift
static let fileExtension: [String] = ["chordpro", "cho", "crd", "chopro", "chord", "pro"]
-
The
UTType
for a ChordPro documentDeclaration
Swift
static var readableContentTypes: [UTType]
-
The content of the ChordPro file
Declaration
Swift
var text: String
-
Init the text
Declaration
Swift
init(text: String = newText)
-
Init the configuration
Declaration
Swift
init(configuration: ReadConfiguration) throws
-
Write the document
Declaration
Swift
func fileWrapper(configuration: WriteConfiguration) throws -> FileWrapper
Parameters
configuration
The document configuration
Return Value
A file in the file system