diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index c5b0fef..b7a75c8 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -558,13 +558,16 @@ public struct ShoeGazeBuilderView: View { /// Compact top strip: performance monitoring kept on screen — the board switch/mixer bar, the /// scope, and the CPU meters. Tempo / Tuner sit below so they don't crowd the transport row. private var compactTopSection: some View { - VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) { + VStack(alignment: .leading, spacing: ShoeGazeBuilderView.sectionSpacing) { HStack(spacing: ShoeGazeBuilderView.rowSpacing) { TempoView(shoeGaze: shoeGaze) TunerView(shoeGaze: shoeGaze) + Spacer(minLength: 0) } .environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled) + Divider().overlay(Color.white.opacity(ShoeGazeBuilderView.dividerOpacity)) + BoardBarView( shoeGaze: shoeGaze, editingBoardIndex: $selectedBoardIndex, @@ -573,6 +576,8 @@ public struct ShoeGazeBuilderView: View { onClearBoards: { showClearDialog = true } ) + Divider().overlay(Color.white.opacity(ShoeGazeBuilderView.dividerOpacity)) + ShoeGazeScopeView(shoeGaze: shoeGaze) LyrebirdStatusView(engine: shoeGaze.engine) } @@ -588,6 +593,9 @@ public struct ShoeGazeBuilderView: View { ) .padding() .navigationTitle("Add Pedal") + #if os(iOS) + .navigationBarTitleDisplayMode(.inline) + #endif .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { showPaletteSheet = false } @@ -601,28 +609,48 @@ public struct ShoeGazeBuilderView: View { /// a compact sheet — the set-and-forget composition controls. private var settingsSheet: some View { NavigationStack { - Form { - Section("Engine") { + // A plain scroll (not a Form) so the engine controls' horizontal row has the full sheet + // width — a Form row compresses it and clips the Start button to "S…". + ScrollView { + VStack(alignment: .leading, spacing: ShoeGazeBuilderView.sectionSpacing) { + Text("Engine") + .font(.headline) + .foregroundStyle(Color.white) EngineConfigView( shoeGaze: shoeGaze, hardwareSampleRate: hardwareSampleRate, onConfigApplied: { transportTick.toggle() } ) - } - Section("Input") { - Picker("Input", selection: inputBinding) { - Text("Test Loop").tag(ShoeGazeBuilderView.testLoopTag) - if shoeGaze.engine.numInputChannels > 0 { - ForEach(Array(0.. 0 { + ForEach(Array(0..