ChordsView
struct ChordsView: View
SwiftUI View
for the chord diagrams
-
The ChordPro document
Declaration
Swift
var document: ChordProDocument
-
The app state
Declaration
Swift
private var appState
-
The scene state
Declaration
Swift
private var sceneState
-
Sheet with chords of the selected type
Declaration
Swift
var selectedChord: ChordDefinition?
-
A new chord definition in the sheet
Declaration
Swift
var defineChord: ChordDefinition?
-
The body of the
View
Declaration
Swift
var body: some View
-
Present a Sheet with chord definitions for the selected chord name
Declaration
Swift
var chordsSheet: some View
-
Get all chord definitions for the selected chord name
Declaration
Swift
private func getChordDefinitions() -> [ChordDefinition]
Return Value
An array of chord definitions`
-
Check of a chord in the sheet is the currrent selected chord
Declaration
Swift
private func selected(chord: ChordDefinition) -> Bool
Parameters
chord
The chord definition
Return Value
True when current selection; else false