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
NSWindow
of thisView
Declaration
Swift
private var window: NSWindow?
-
The body of the
View
Declaration
Swift
var body: some View
-
Filter the chords
Declaration
Swift
func filterChords()
-
SwiftUI
See moreView
to edit the databaseDeclaration
Swift
struct EditView: View
-
Show a chord diagram
Declaration
Swift
func diagram(chord: ChordDefinition) -> some View
Parameters
chord
The
ChordDefinition
Return Value
A
View
with the chord diagram -
Chord actions
Declaration
Swift
private func actions(chord: ChordDefinition) -> some View
Parameters
chord
The
ChordDefinition
Return Value
A
View
with 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
View
with options for the gridDeclaration
Swift
var options: some View