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 moreButtonto play the chord with MIDIDeclaration
Swift
struct PlayButton: View
-
SwiftUI
Viewwith aToggleto show the whole last chorus when using a {chorus} directiveDeclaration
Swift
var repeatWholeChorusToggle: some View -
SwiftUI
See moreViewwith aToggleto show the whole last chorus when using a {chorus} directiveDeclaration
Swift
private struct RepeatWholeChorusToggle: View
-
SwiftUI
Viewwith aToggleto show only the lyricsDeclaration
Swift
var lyricsOnlyToggle: some View -
SwiftUI
See moreViewwith aToggleto show only the lyricsDeclaration
Swift
private struct LyricsOnlyToggle: View
-
SwiftUI
Viewwith aToggleto show or hide the name on the diagramDeclaration
Swift
var nameToggle: some View -
/ SwiftUI
See moreViewwith aToggleto show or hide the name on the diagramDeclaration
Swift
private struct NameToggle: View
-
SwiftUI
Viewwith aToggleto show or hide the fingers on the diagramDeclaration
Swift
var fingersToggle: some View -
SwiftUI
See moreViewwith aToggleto show or hide the fingers on the diagramDeclaration
Swift
private struct FingersToggle: View
-
SwiftUI
Viewwith aToggleto show or hide the notes on the diagramDeclaration
Swift
var notesToggle: some View -
SwiftUI
See moreViewwith aToggleto show or hide the notes on the diagramDeclaration
Swift
private struct NotesToggle: View
-
SwiftUI
Viewwith aToggleto mirror the diagramDeclaration
Swift
var mirrorToggle: some View -
SwiftUI
See moreViewwith aToggleto mirror the diagramDeclaration
Swift
private struct MirrorToggle: View
-
SwiftUI
Viewwith aToggleto show or hide the play buttonDeclaration
Swift
var playToggle: some View -
SwiftUI
See moreViewwith aToggleto show or hide the play buttonDeclaration
Swift
private struct PlayToggle: View
-
SwiftUI
Pickerto select a MIDIInstrumentvalueDeclaration
Swift
var midiInstrumentPicker: some View -
SwiftUI
See morePickerto select a MIDIInstrumentvalueDeclaration
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
settingsThe
AppSettingsReturn Value
An array with arguments
-
Declaration
Swift
enum AppStateID: String
View on GitHub