ChordsDatabaseView
struct ChordsDatabaseView: View
SwiftUI View for the chords database
-
The observable state of the application
Declaration
Swift
var appState = AppStateModel(id: .chordsDatabaseView) -
The state of the scene
Declaration
Swift
var sceneState = SceneStateModel(id: .chordsDatabaseView) -
The observable state of the chords database
Declaration
Swift
var chordsDatabaseState = ChordsDatabaseStateModel() -
The current color scheme
Declaration
Swift
var colorScheme -
The conformation dialog to delete a chord
Declaration
Swift
var showDeleteConfirmation = false -
The
NSWindowof thisViewDeclaration
Swift
private var window: NSWindow? -
The body of the
ViewDeclaration
Swift
var body: some View -
Filter the chords
Declaration
Swift
func filterChords() -
SwiftUI
See moreViewto edit the databaseDeclaration
Swift
struct EditView: View -
Show a chord diagram
Declaration
Swift
func diagram(chord: ChordDefinition) -> some ViewParameters
chordThe
ChordDefinitionReturn Value
A
Viewwith the chord diagram -
Chord actions
Declaration
Swift
private func actions(chord: ChordDefinition) -> some ViewParameters
chordThe
ChordDefinitionReturn Value
A
Viewwith chord actions
-
Edit chord button
Declaration
Swift
private func editButton(chord: ChordDefinition) -> some View -
Duplicate chord button
Declaration
Swift
private func duplicateButton(chord: ChordDefinition) -> some View -
Confirm chord delete button
Declaration
Swift
private func confirmDeleteButton(chord: ChordDefinition) -> some View -
Delete chord button
Declaration
Swift
private func deleteButton(chord: ChordDefinition) -> some View -
View the chords in a grid
Declaration
Swift
var grid: some View -
A
Viewwith options for the gridDeclaration
Swift
var options: some View
View on GitHub