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
View
Declaration
Swift
var body: some View
-
The diagram
View
Declaration
Swift
func diagramView(width: Double) -> some View
-
Check if a note is required for a chord
The first array of the
chordComponents
contains all notesThe last array of the
chordComponents
contains the least notesDeclaration
Swift
func checkRequiredNote(note: Chord.Root) -> Bool
Parameters
note
The note to check
Return Value
True or False
-
The header
View
Declaration
Swift
func header(text: String) -> some View
Parameters
text
The text as
String
Return Value
A
View
with the header title