AppSettings
struct AppSettings: Equatable, Codable, Sendable
All the settings for the application
-
The options for the
ChordProEditor
Declaration
Swift
var editor: ChordProEditor.Settings = .init()
-
Song Display Options
Declaration
Swift
var songDisplayOptions = Song.DisplayOptions()
-
Chord Display Options
Declaration
Swift
var chordDisplayOptions = ChordDefinition.DisplayOptions()
-
Default Chord Display Options
Declaration
Swift
static let defaults = ChordDefinition.DisplayOptions( showName: true, showNotes: true, showPlayButton: true, rootDisplay: .symbol, qualityDisplay: .symbolized, showFingers: true, mirrorDiagram: false )
-
Load the application settings
Declaration
Swift
static func load(id: String) -> AppSettings
Parameters
id
The ID of the settings
Return Value
The
ChordProviderSettings
-
Save the application settings to the cache
Declaration
Swift
static func save(id: String, settings: AppSettings) throws
Parameters
id
The ID of the settings
settings
The
ChordProviderSettings