RenderView
struct RenderView: View
Render a Song
structure into a SwiftUI View
-
Init the RenderView
Declaration
Swift
init(song: Song, options: DisplayOptions)
Parameters
song
The
Song
options
The
DisplayOptions
-
The display options
Declaration
Swift
let options: DisplayOptions
-
The body of the
View
Declaration
Swift
var body: some View
-
The sections of the
View
Declaration
Swift
var sections: some View
-
Store diagrams in a memory cache for performance
Declaration
Swift
static let diagramCache = NSCache<NSString, NSImage>()
-
SwiftUI
See moreView
for a chord as part of a lineDeclaration
Swift
struct ChordView: View
-
Wrapper around a section
See moreDeclaration
Swift
struct SectionView: ViewModifier
-
SwiftUI
View
for a verse section
-
SwiftUI
View
for a chorus section -
SwiftUI
View
for a chorus repeat
-
SwiftUI
View
for a tab section
-
SwiftUI
View
for a grid section
-
SwiftUI
View
for a plain text section
-
SwiftUI
View
for a comment in its own section -
SwiftUI
View
for a comment labelDeclaration
Swift
func commentLabel(comment: String) -> some View
-
SwiftUI
View
for a strum section
-
SwiftUI
View
for a plain text section