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
Alertif 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 theSongViewduring animation because of performanceDeclaration
Swift
var isAnimating: Bool = false
-
All the values of a
ChordDefinitionNote
Used for editing a chordDeclaration
Swift
var definition: ChordDefinition -
Bool to show the
cleanconfirmation 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.jsonnext 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
Viewwith aPickerto select aRootvalueDeclaration
Swift
func rootPicker(showAllOption: Bool, hideFlats: Bool) -> some View -
Declaration
Swift
struct RootPicker: View
-
SwiftUI
Viewwith aPickerto select aQualityvalueDeclaration
Swift
func qualityPicker(showAll: Bool = false) -> some View -
Declaration
Swift
struct QualityPicker: View
-
SwiftUI
Viewwith aPickerto select abaseFretvalueDeclaration
Swift
var baseFretPicker: some View -
SwiftUI
See moreViewwith aPickerto select abaseFretvalueDeclaration
Swift
struct BaseFretPicker: View
-
SwiftUI
Viewwith aPickerto select aRootvalue as bass noteDeclaration
Swift
var bassPicker: some View -
Declaration
Swift
struct BassPicker: View
-
SwiftUI
Viewwith aPickerto selectfretvaluesDeclaration
Swift
var fretsPicker: some View -
SwiftUI
See moreViewwith aPickerto selectfretvaluesDeclaration
Swift
struct FretsPicker: View
-
SwiftUI
Viewwith aPickerto selectfingervaluesDeclaration
Swift
var fingersPicker: some View -
SwiftUI
See moreViewwith aPickerto selectfingervaluesDeclaration
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
Pickerto select aInstrumentvalueDeclaration
Swift
var instrumentPicker: some View -
SwiftUI
See morePickerto select aInstrumentvalueDeclaration
Swift
struct InstrumentPicker: View -
The status of a Scene View
See moreDeclaration
Swift
enum Status
View on GitHub