SceneStateModel
final class SceneStateModel
The observable scene state for Chord Provider
-
The optional file location
Declaration
Swift
var file: URL?
-
The optional template location
Declaration
Swift
var template: URL?
-
The raw content of the document
Declaration
Swift
var content: String = ""
-
PDF preview related stuff
Declaration
Swift
var preview = PreviewState()
-
The internals of the Chord Provider editor
Declaration
Swift
var editorInternals = ChordProEditor.Internals()
-
The settings for the scene
Declaration
Swift
var settings: AppSettings
-
The status of the View
Declaration
Swift
var status: Status = .loading
-
Show an
Alert
if we have an errorDeclaration
Swift
var errorAlert: AlertMessage?
-
Bool to show the editor or not
Declaration
Swift
var showEditor: Bool = false
-
Bool that some animation is ongoing
Note
Used to hide theSongView
during animation because of performanceDeclaration
Swift
var isAnimating: Bool = false
-
All the values of a
ChordDefinition
Note
Used for editing a chordDeclaration
Swift
var definition: ChordDefinition
-
Bool to show the
clean
confirmation dialogDeclaration
Swift
var cleanConfirmation = false
-
The temporary directory URL for processing files
Note
In its own directory so easier to debugDeclaration
Swift
let temporaryDirectoryURL = URL(fileURLWithPath: NSTemporaryDirectory(), isDirectory: true) .appendingPathComponent("ChordProviderTMP", isDirectory: true)
-
The URL of the export PDF
Declaration
Swift
var exportURL: URL
-
Export the song to a PDF
Declaration
Swift
func exportSongToPDF() async throws -> Data
-
Get the optional media stored next to a song file
Declaration
Swift
func getMedia()
-
The URL of the source file
Declaration
Swift
var sourceURL: URL
-
The optional local configuration (a config named
chordpro.json
next to a song)Declaration
Swift
var localSystemConfigURL: URL?
-
The optional local configuration (a config with the same base-name next to a song)
Declaration
Swift
var localSongConfigURL: URL?
-
Init the class
Declaration
Swift
init(id: AppStateModel.AppStateID)
-
Chords menu
Declaration
Swift
var chordsMenu: some View
-
Chords menu
See moreDeclaration
Swift
private struct ChordsMenu: View
-
Show chords button
Declaration
Swift
var showChordsButton: some View
-
Show chords button
See moreDeclaration
Swift
private struct ShowChordsButton: View
-
Chords As Diagram Toggle
Declaration
Swift
var chordsAsDiagramToggle: some View
-
Chords As Diagram Toggle
See moreDeclaration
Swift
private struct ChordsAsDiagramToggle: View
-
Song Paging Picker
Declaration
Swift
var songPagingPicker: some View
-
Song Paging Picker
See moreDeclaration
Swift
private struct SongPagingPicker: View
-
Chords Position Picker
Declaration
Swift
var chordsPositionPicker: some View
-
Chords Position Picker
See moreDeclaration
Swift
private struct ChordsPositionPicker: View
-
SwiftUI
View
with aPicker
to select aRoot
valueDeclaration
Swift
func rootPicker(showAllOption: Bool, hideFlats: Bool) -> some View
-
Declaration
Swift
struct RootPicker: View
-
SwiftUI
View
with aPicker
to select aQuality
valueDeclaration
Swift
func qualityPicker(showAll: Bool = false) -> some View
-
Declaration
Swift
struct QualityPicker: View
-
SwiftUI
View
with aPicker
to select abaseFret
valueDeclaration
Swift
var baseFretPicker: some View
-
SwiftUI
See moreView
with aPicker
to select abaseFret
valueDeclaration
Swift
struct BaseFretPicker: View
-
SwiftUI
View
with aPicker
to select aRoot
value as bass noteDeclaration
Swift
var bassPicker: some View
-
Declaration
Swift
struct BassPicker: View
-
SwiftUI
View
with aPicker
to selectfret
valuesDeclaration
Swift
var fretsPicker: some View
-
SwiftUI
See moreView
with aPicker
to selectfret
valuesDeclaration
Swift
struct FretsPicker: View
-
SwiftUI
View
with aPicker
to selectfinger
valuesDeclaration
Swift
var fingersPicker: some View
-
SwiftUI
See moreView
with aPicker
to selectfinger
valuesDeclaration
Swift
struct FingersPicker: View
-
Scale Slider
Declaration
Swift
var scaleSlider: some View
-
Scale Slider
See moreDeclaration
Swift
private struct ScaleSlider: View
-
Show Editor Button
Declaration
Swift
var showEditorButton: some View
-
Show Editor Button
See moreDeclaration
Swift
private struct ShowEditorButton: View
-
Clean Source Button
Declaration
Swift
var cleanSourceButton: some View
-
Clean Source Button
See moreDeclaration
Swift
private struct CleanSourceButton: View
-
Transpose Menu
Declaration
Swift
var transposeMenu: some View
-
Transpose Menu
See moreDeclaration
Swift
private struct TransposeMenu: View
-
SwiftUI
Picker
to select aInstrument
valueDeclaration
Swift
var instrumentPicker: some View
-
SwiftUI
See morePicker
to select aInstrument
valueDeclaration
Swift
struct InstrumentPicker: View
-
The status of a Scene View
See moreDeclaration
Swift
enum Status