From cd3aeb771b41c3abe4d37d21cc43becf94dd3062 Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Sat, 4 Jul 2026 21:40:23 -0700 Subject: [PATCH] =?UTF-8?q?iPad=20header:=20three=20rows=20=E2=80=94=20rig?= =?UTF-8?q?=20controls=20inline,=20Tempo/Tuner=20own=20row?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Split the header into the requested three rows: Row 1: ShoeGaze title · [Bypass · Mute · Help · MIDI filling to the scope] · scope · Start/Record Row 2: Tempo · Tuner Row 3: Rigs · Pedals · Settings Co-Authored-By: Claude Opus 4.8 --- .../ShoeGazeBuilderView.swift | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index b0c571a..212d7c2 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -500,10 +500,9 @@ public struct ShoeGazeBuilderView: View { /// horizontally scrollable row of panel toggles that open the composition sheets. private var compactHeader: some View { _ = transportTick - // Top row: title on the left, then the performance controls filling the space to its right - // (a scroll view flexes to the gap between the title and the scope, so it never collides - // with the scope and scrolls when the width is tight). Scope + transport on the right; the - // composition sheet-openers get their own row beneath. + // Row 1: title, then the rig-wide controls filling the space to its right (a scroll view + // flexes to the gap between the title and the scope), then scope + transport. Row 2: Tempo / + // Tuner. Row 3: the composition sheet-openers. return VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) { HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) { HStack(spacing: ShoeGazeBuilderView.rowSpacing) { @@ -515,7 +514,7 @@ public struct ShoeGazeBuilderView: View { if shoeGaze.isRecording { recordingBadge } } - compactPerformanceRow + compactRigControlsRow // A narrow scope sits left of the transport cluster to use the header's dead space. ShoeGazeScopeView(shoeGaze: shoeGaze) @@ -537,16 +536,20 @@ public struct ShoeGazeBuilderView: View { } } + HStack(spacing: ShoeGazeBuilderView.rowSpacing) { + TempoView(shoeGaze: shoeGaze) + TunerView(shoeGaze: shoeGaze) + } + .environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled) + compactPanelRow } } - /// The performance-control row: Tempo / Tuner plus the rig-wide Bypass / Mute / Help / MIDI. - private var compactPerformanceRow: some View { + /// The rig-wide controls shown inline on the title row: Bypass / Mute / Help / MIDI. + private var compactRigControlsRow: some View { ScrollView(.horizontal, showsIndicators: false) { HStack(spacing: ShoeGazeBuilderView.rowSpacing) { - TempoView(shoeGaze: shoeGaze) - TunerView(shoeGaze: shoeGaze) rigBypassButton // fixedSize stops the switch Toggle from expanding to fill the row (which pushed // the following controls far to the right, under the scope). @@ -562,7 +565,6 @@ public struct ShoeGazeBuilderView: View { } } } - .environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled) } /// The composition-panel row: buttons that open the Rigs / Pedals / Settings sheets.