DirectiveSheet
struct DirectiveSheet: View
SwiftUI View to define a directive
-
The directive
Declaration
Swift
let directive: ChordPro.Directive -
The observable state of the scene
Declaration
Swift
var sceneState -
The label for the action button
Declaration
Swift
var actionLabel: String -
The value for a slider
Declaration
Swift
private var sliderValue: Double = 0 -
The dismiss environment
Declaration
Swift
var dismiss -
The body of the
ViewDeclaration
Swift
var body: some View -
The cancel button
Declaration
Swift
var cancelButton: some View -
Format a directive
Declaration
Swift
private func format() -
Viewof the directive sheet titleDeclaration
Swift
var directiveTitleView: some View -
The default
Viewwhen there is no specificViewfor theDirectiveDeclaration
Swift
var defaultView: some View -
Viewto define a chordDeclaration
Swift
var defineView: some View -
Viewto define the ‘slider’ for a number directiveDeclaration
Swift
func sliderView(start: Double, end: Double) -> some View -
Viewto define the ‘key’ of the songDeclaration
Swift
var keyView: some View
View on GitHub