ChordsView
struct ChordsView: View
SwiftUI View for the chord diagrams
-
The ChordPro document
Declaration
Swift
var document: ChordProDocument -
The observable state of the scene
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
ViewDeclaration
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) -> BoolParameters
chordThe chord definition
Return Value
True when current selection; else false
View on GitHub