AppStateModel
final class AppStateModel
The observable application state for Chord Provider
-
The list with recent files
Declaration
Swift
var recentFiles: [URL] = []
-
The optional current song in focus
Declaration
Swift
var song: Song?
-
Last time the app state was updated
Declaration
Swift
var lastUpdate: Date = .now
-
The ID of the app state
Declaration
Swift
var id: AppStateID
-
The application settings
Declaration
Swift
var settings: AppSettings
-
The optional media next to the song
Declaration
Swift
var media = MediaPlayerView.Item()
-
Init the class; get application settings
Declaration
Swift
init(id: AppStateID)
-
SwiftUI
See moreButton
to play the chord with MIDIDeclaration
Swift
struct PlayButton: View
-
SwiftUI
View
with aToggle
to show the whole last chorus when using a {chorus} directiveDeclaration
Swift
var repeatWholeChorusToggle: some View
-
SwiftUI
See moreView
with aToggle
to show the whole last chorus when using a {chorus} directiveDeclaration
Swift
private struct RepeatWholeChorusToggle: View
-
SwiftUI
View
with aToggle
to show only the lyricsDeclaration
Swift
var lyricsOnlyToggle: some View
-
SwiftUI
See moreView
with aToggle
to show only the lyricsDeclaration
Swift
private struct LyricsOnlyToggle: View
-
SwiftUI
View
with aToggle
to show or hide the name on the diagramDeclaration
Swift
var nameToggle: some View
-
/ SwiftUI
See moreView
with aToggle
to show or hide the name on the diagramDeclaration
Swift
private struct NameToggle: View
-
SwiftUI
View
with aToggle
to show or hide the fingers on the diagramDeclaration
Swift
var fingersToggle: some View
-
SwiftUI
See moreView
with aToggle
to show or hide the fingers on the diagramDeclaration
Swift
private struct FingersToggle: View
-
SwiftUI
View
with aToggle
to show or hide the notes on the diagramDeclaration
Swift
var notesToggle: some View
-
SwiftUI
See moreView
with aToggle
to show or hide the notes on the diagramDeclaration
Swift
private struct NotesToggle: View
-
SwiftUI
View
with aToggle
to mirror the diagramDeclaration
Swift
var mirrorToggle: some View
-
SwiftUI
See moreView
with aToggle
to mirror the diagramDeclaration
Swift
private struct MirrorToggle: View
-
SwiftUI
View
with aToggle
to show or hide the play buttonDeclaration
Swift
var playToggle: some View
-
SwiftUI
See moreView
with aToggle
to show or hide the play buttonDeclaration
Swift
private struct PlayToggle: View
-
SwiftUI
Picker
to select a MIDIInstrument
valueDeclaration
Swift
var midiInstrumentPicker: some View
-
SwiftUI
See morePicker
to select a MIDIInstrument
valueDeclaration
Swift
private struct MidiInstrumentPicker: View
-
Add the user settings as arguments to ChordPro for the Terminal action
Declaration
Swift
static func getUserSettings(settings: AppSettings) -> [String]
Parameters
settings
The
AppSettings
Return Value
An array with arguments
-
Declaration
Swift
enum AppStateID: String