RenderView
struct RenderView: View
Render a Song
structure into a SwiftUI View
-
Init the
View
Declaration
Swift
init( song: Song, paging: AppSettings.SongDisplayOptions.Paging, labelStyle: AppSettings.SongDisplayOptions.LabelStyle )
Parameters
song
The “Song
paging
The option for the paging
labelStyle
The option for the label style
-
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
-
SwiftUI
See moreView
for an imageDeclaration
Swift
struct ImageView: View
-
Wrapper around a section
See moreDeclaration
Swift
struct SectionView: ViewModifier
-
SwiftUI
View
for a verse sectionDeclaration
Swift
func verseSection(section: Song.Section) -> some View
-
SwiftUI
View
for a tab sectionDeclaration
Swift
func tabSection(section: Song.Section) -> some View
-
SwiftUI
View
for a grid sectionDeclaration
Swift
func gridSection(section: Song.Section) -> some View
-
SwiftUI
View
for a plain text sectionDeclaration
Swift
func textblockSection(section: Song.Section) -> some View
-
SwiftUI
View
for a comment in its own sectionDeclaration
Swift
func commentSection(section: Song.Section) -> some View
-
SwiftUI
View
for a comment labelDeclaration
Swift
func commentLabel(comment: String) -> some View
-
SwiftUI
View
for a strum sectionDeclaration
Swift
func strumSection(section: Song.Section) -> some View
-
SwiftUI
View
for an imageDeclaration
Swift
func imageSection(section: Song.Section) -> some View
-
Get flush from the arguments
Declaration
Swift
func getFlush(_ arguments: ChordProParser.Arguments?) -> HorizontalAlignment
Parameters
arguments
The arguments of the directive
Return Value
The flush alignment
-
Get alignment from the arguments
Declaration
Swift
func getAlign(_ arguments: ChordProParser.Arguments?) -> Alignment
Parameters
arguments
The arguments of the directive
Return Value
The alignment