ChordView
struct ChordView: View
SwiftUI View
for a chord as part of a line
-
The display options
Declaration
Swift
let options: Song.DisplayOptions
-
The ID of the section
Declaration
Swift
let sectionID: Int
-
The ID of the part
Declaration
Swift
let partID: Int
-
The chord
Declaration
Swift
let chord: ChordDefinition
-
The current color scheme
Declaration
Swift
var colorScheme
-
The calculated ID of this
View
Declaration
Swift
var popoverID: String
-
The color of a chord
Declaration
Swift
var color: Color
-
The
popover
stateDeclaration
Swift
private var popover: String?
-
The ‘hover’ state
Declaration
Swift
private var hover: Bool = false
-
The body of the
View
Declaration
Swift
var body: some View
-
Get the diagram
Note
Diagrams are stored in a memory cache to improve performanceDeclaration
Swift
func getDiagram() -> some View