ChordsView
struct ChordsView : View
SwiftUI View
for the chord diagrams
-
The ChordPro document
Declaration
Swift
@Binding var document: ChordProDocument { get nonmutating set }
-
The app state
Declaration
Swift
@Environment private var appState: AppState { get }
-
The scene state
Declaration
Swift
@Environment private var sceneState: SceneState { get }
-
Sheet with chords of the selected type
Declaration
Swift
@State var selectedChord: ChordDefinition? { get nonmutating set }
-
A new chord definition in the sheet
Declaration
Swift
@State var defineChord: ChordDefinition? { get nonmutating set }
-
The body of the
View
Declaration
Swift
var body: some View { get }
-
Present a Sheet with chord definitions for the selected chord name
Declaration
Swift
@ViewBuilder var chordsSheet: some View { get }
-
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