EditorView
struct EditorView: View
SwiftUI View
for the ChordProEditor
-
The ChordPro document
Declaration
Swift
var document: ChordProDocument
-
The observable state of the application
Declaration
Swift
var appState
-
The observable state of the scene
Declaration
Swift
var sceneState
-
Show a directive sheet
Declaration
Swift
var showDirectiveSheet: Bool = false
-
The optional directive to edit
Declaration
Swift
var editDirective: ChordPro.Directive?
-
The body of the
View
Declaration
Swift
var body: some View
-
The editor
Declaration
Swift
var editor: some View
-
SwiftUI
See moreView
to define a directiveDeclaration
Swift
struct DirectiveSheet: View
-
A button to add a directive with the selected text
Declaration
Swift
func directiveButton(directive: ChordPro.Directive) -> some View
-
Menus with ChordPro directives
Declaration
Swift
var directiveMenus: some View
-
A button for the text editor to add a directive with a sheet
Note
Shown when there is no selection for the directiveDeclaration
Swift
func directiveSheetButton(directive: ChordPro.Directive) -> some View
-
Validate the definition of the chord
Declaration
Swift
func validateChordDefinition() -> Bool
Return Value
True or false to show the sheet. If true, the definition will be set or else an alert will be shown