ChordProDocument

struct ChordProDocument : FileDocument

The ChordProDocument for Chord Provider

  • The text for a new song

    Declaration

    Swift

    static let newText: String
  • Build a song max one time per second

    Declaration

    Swift

    let buildSongDebouncer: Debouncer
  • The file extensions Chord Provider can open

    Declaration

    Swift

    static let fileExtension: [String]
  • The UTType for a ChordPro document

    Declaration

    Swift

    static var readableContentTypes: [UTType] { get }
  • 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