Add in-app Help (macOS Help menu + iOS button)
New shared HelpView in LyrebirdShoeGazeUI: a sectioned guide covering setup &
starting the engine, choosing an input, boards & rigs, saving & autosave,
iCloud documents, and MIDI control. Text + SF Symbols for now; each topic
leaves a slot for a bundled screenshot to be added later.
- macOS: a Help menu ("ShoeGaze Help", ⌘?) opens the guide in a LyrebirdWindow.
- iOS/both: a ? button in the transport row opens it in a sheet.
Both app targets build; suite green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -153,6 +153,9 @@ public struct ShoeGazeBuilderView: View {
|
||||
/// MIDI mapping sheet presentation flag.
|
||||
@State private var showMIDISheet: Bool = false
|
||||
|
||||
/// Help sheet presentation flag (iOS button; macOS uses the Help menu).
|
||||
@State private var showHelpSheet: Bool = false
|
||||
|
||||
#if !os(macOS)
|
||||
/// iOS recording-folder picker presentation flag. (macOS uses the Record menu.)
|
||||
@State private var showRecordingFolderImporter: Bool = false
|
||||
@@ -305,6 +308,9 @@ public struct ShoeGazeBuilderView: View {
|
||||
MIDIMappingSheet(controller: midi, shoeGaze: shoeGaze)
|
||||
}
|
||||
}
|
||||
.sheet(isPresented: $showHelpSheet) {
|
||||
HelpView()
|
||||
}
|
||||
.overlay(alignment: .top) { midiLearnBanner }
|
||||
}
|
||||
|
||||
@@ -548,6 +554,7 @@ public struct ShoeGazeBuilderView: View {
|
||||
if let midi: MIDIController = midi {
|
||||
MIDIIndicatorView(controller: midi) { showMIDISheet = true }
|
||||
}
|
||||
helpButton
|
||||
rigBypassButton
|
||||
EngineConfigView(
|
||||
shoeGaze: shoeGaze,
|
||||
@@ -557,6 +564,19 @@ public struct ShoeGazeBuilderView: View {
|
||||
}
|
||||
}
|
||||
|
||||
/// Opens the in-app help. Shown on both platforms; macOS also has a Help menu item.
|
||||
private var helpButton: some View {
|
||||
Button {
|
||||
showHelpSheet = true
|
||||
} label: {
|
||||
Image(systemName: "questionmark.circle")
|
||||
.font(.subheadline)
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
.tint(.gray)
|
||||
.help("Open ShoeGaze Help")
|
||||
}
|
||||
|
||||
/// Global rig bypass — routes every board to its dry input at once (pedals skipped). Lit when
|
||||
/// engaged. A live performance panic/compare control.
|
||||
private var rigBypassButton: some View {
|
||||
|
||||
Reference in New Issue
Block a user