ChordDefinitionView
struct ChordDefinitionView: View
SwiftUI View
for a ChordDefinition
-
The chord to display in a diagram
Declaration
Swift
let chord: ChordDefinition
-
The width of the diagram
Declaration
Swift
let width: Double
-
The height of the grid
Declaration
Swift
let gridHeight: Double
-
The height of a line
Declaration
Swift
let lineHeight: Double
-
The width of a cell
Declaration
Swift
let cellWidth: Double
-
The horizontal padding
Declaration
Swift
let horizontalPadding: Double
-
The frets of the chord; adjusted for left-handed if needed
Declaration
Swift
let frets: [Int]
-
The fingers of the chord; adjusted for left-handed if needed
Declaration
Swift
let fingers: [Int]
-
The offset for an instrument with less than 6 strings
Note
Used to give a barre some paddingDeclaration
Swift
let xOffset: Double
-
The display options for the diagram
Declaration
Swift
let diagramDisplayOptions: AppSettings.DiagramDisplayOptions
-
Init the
View
Declaration
Swift
init(chord: ChordDefinition, width: Double, settings: AppSettings.Song)
Parameters
chord
The
ChordDefinition
width
The width of the diagram
settings
The settings of the song
-
The body of the
View
Declaration
Swift
var body: some View
-
The diagram
View
Declaration
Swift
var diagram: some View
-
The top bar
View
Declaration
Swift
var topBar: some View
-
The grid
View
Declaration
Swift
var grid: some View
-
The frets grid
View
Declaration
Swift
var fretsGrid: some View
-
The barres grid
View
Declaration
Swift
var barresGrid: some View
-
The notes
View
Declaration
Swift
var notesBar: some View
-
The
See moreShape
of the gridDeclaration
Swift
struct GridShape: Shape