CreateChordView
struct CreateChordView: View
SwiftUI View to create a ChordDefinition with pickers
-
Bool to show the ‘all’ option
Declaration
Swift
let showAllOption: Bool -
Bool to hide the flats
Declaration
Swift
let hideFlats: Bool -
The observable state of the application
Declaration
Swift
private var appState -
The binding to the observable state of the scene
Declaration
Swift
var sceneState: SceneStateModel -
The chord diagram
Declaration
Swift
private var diagram: ChordDefinition? -
The current color scheme
Declaration
Swift
private var colorScheme -
The chord components result
Declaration
Swift
private var chordComponents: [[Chord.Root]] = [] -
The body of the
ViewDeclaration
Swift
var body: some View -
The diagram
ViewDeclaration
Swift
func diagramView(width: Double) -> some View -
Check if a note is required for a chord
The first array of the
chordComponentscontains all notesThe last array of the
chordComponentscontains the least notesDeclaration
Swift
func checkRequiredNote(note: Chord.Root) -> BoolParameters
noteThe note to check
Return Value
True or False
-
The header
ViewDeclaration
Swift
func header(text: String) -> some ViewParameters
textThe text as
StringReturn Value
A
Viewwith the header title
View on GitHub