CreateChordView
public struct CreateChordView: View
A SwiftUI View
to create a ChordDefinition
with pickers
-
Init the
View
Declaration
Swift
public init(chordDisplayOptions: Bindable<ChordDisplayOptions>)
-
Chord Display Options object
Declaration
Swift
var chordDisplayOptions: ChordDisplayOptions
-
The chord diagram
Declaration
Swift
private var diagram: ChordDefinition?
-
The current color scheme
Declaration
Swift
private var colorScheme
-
The chord finder result
Declaration
Swift
private var chordFinder: [ChordDefinition] = []
-
The chord components result
Declaration
Swift
private var chordComponents: [[Chord.Root]] = []
-
The body of the
View
Declaration
Swift
public 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