From e75b50b15714502274ee5613a1ee733e4b367772 Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Sat, 4 Jul 2026 21:28:18 -0700 Subject: [PATCH] iPad header: place performance controls inline, right of the title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move the performance row (Tempo / Tuner / Bypass / Mute / Help / MIDI) up onto the title row, filling the space between the title and the scope. As a horizontal scroll view it flexes to the available gap — shows in full in landscape, scrolls when tight in portrait — and no longer sits beneath the scope. The composition sheet-openers (Rigs / Pedals / Settings) remain on the row beneath. Co-Authored-By: Claude Opus 4.8 --- Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index 3d8b792..b0c571a 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -500,9 +500,10 @@ public struct ShoeGazeBuilderView: View { /// horizontally scrollable row of panel toggles that open the composition sheets. private var compactHeader: some View { _ = transportTick - // Top row: title + Tempo/Tuner on the left, scope + transport on the right. The panel row - // (Rigs / Pedals / Settings / Bypass / Mute / help / MIDI) spans the FULL width beneath, so - // it is never clipped by the scope in the narrower portrait width. + // 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. return VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) { HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) { HStack(spacing: ShoeGazeBuilderView.rowSpacing) { @@ -514,7 +515,7 @@ public struct ShoeGazeBuilderView: View { if shoeGaze.isRecording { recordingBadge } } - Spacer(minLength: ShoeGazeBuilderView.rowSpacing) + compactPerformanceRow // A narrow scope sits left of the transport cluster to use the header's dead space. ShoeGazeScopeView(shoeGaze: shoeGaze) @@ -536,9 +537,6 @@ public struct ShoeGazeBuilderView: View { } } - // Performance controls (tempo, tuner, and the rig-wide toggles) sit together on the row - // under the title; the composition sheet-openers get their own row beneath. - compactPerformanceRow compactPanelRow } }