RenderView
struct RenderView: View
Render a Song structure into a SwiftUI View
-
Init the
ViewDeclaration
Swift
init( song: Song, paging: AppSettings.SongDisplayOptions.Paging, labelStyle: AppSettings.SongDisplayOptions.LabelStyle )Parameters
songThe “Song
pagingThe option for the paging
labelStyleThe option for the label style
-
The body of the
ViewDeclaration
Swift
var body: some View -
The sections of the
ViewDeclaration
Swift
var sections: some View -
Store diagrams in a memory cache for performance
Declaration
Swift
static let diagramCache = NSCache<NSString, NSImage>() -
SwiftUI
See moreViewfor a chord as part of a lineDeclaration
Swift
struct ChordView: View -
SwiftUI
See moreViewfor an imageDeclaration
Swift
struct ImageView: View
-
Wrapper around a section
See moreDeclaration
Swift
struct SectionView: ViewModifier
-
SwiftUI
Viewfor a verse sectionDeclaration
Swift
func verseSection(section: Song.Section) -> some View
-
SwiftUI
Viewfor a tab sectionDeclaration
Swift
func tabSection(section: Song.Section) -> some View
-
SwiftUI
Viewfor a grid sectionDeclaration
Swift
func gridSection(section: Song.Section) -> some View
-
SwiftUI
Viewfor a plain text sectionDeclaration
Swift
func textblockSection(section: Song.Section) -> some View
-
SwiftUI
Viewfor a comment in its own sectionDeclaration
Swift
func commentSection(section: Song.Section) -> some View -
SwiftUI
Viewfor a comment labelDeclaration
Swift
func commentLabel(comment: String) -> some View
-
SwiftUI
Viewfor a strum sectionDeclaration
Swift
func strumSection(section: Song.Section) -> some View
-
SwiftUI
Viewfor an imageDeclaration
Swift
func imageSection(section: Song.Section) -> some View
-
Get flush from the arguments
Declaration
Swift
func getFlush(_ arguments: ChordProParser.Arguments?) -> HorizontalAlignmentParameters
argumentsThe arguments of the directive
Return Value
The flush alignment
-
Get alignment from the arguments
Declaration
Swift
func getAlign(_ arguments: ChordProParser.Arguments?) -> AlignmentParameters
argumentsThe arguments of the directive
Return Value
The alignment
View on GitHub