MainView

struct MainView : View

SwiftUI View for the main content

  • The ChordPro document

    Declaration

    Swift

    @Binding
    var document: ChordProDocument { get nonmutating set }
  • The Song

    Declaration

    Swift

    @Binding
    var song: Song { get nonmutating set }
  • The optional file location

    Declaration

    Swift

    let file: URL?
  • Chord Display Options

    Declaration

    Swift

    @EnvironmentObject
    private var chordDisplayOptions: ChordDisplayOptions { get }
  • Bool to show the editor or not

    Declaration

    Swift

    @SceneStorage
    var showEditor: Bool { get nonmutating set }
  • Bool to show the chords or not

    Declaration

    Swift

    @SceneStorage
    var showChords: Bool { get nonmutating set }
  • The scene state

    Declaration

    Swift

    @EnvironmentObject
    private var sceneState: SceneState { get }
  • The body of the View

    Declaration

    Swift

    var body: some View { get }