From ba80573213917b78205d7a16023b79cde0c08952 Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Sat, 4 Jul 2026 14:58:10 -0700 Subject: [PATCH] iPad polish: fix Tempo/Tuner truncation, sheet title overlap, cramped strip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TempoView/TunerView toggles size to content (fixedSize) instead of a fixed 96pt width that truncated "Tempo: On" to "Tempo:…" at iOS font sizes. - Add-Pedal sheet uses an inline navigation title so the large title no longer draws over the palette list. - Settings sheet lays the engine controls out in a plain scroll (not a Form), so the Start button isn't compressed to "S…"; input picker on its own row. - Compact top strip separates Tempo/Tuner, the board mixer, and the scope with dividers and section spacing so they stop visually colliding. Co-Authored-By: Claude Opus 4.8 --- .../ShoeGazeBuilderView.swift | 52 ++++++++++++++----- Sources/LyrebirdShoeGazeUI/TempoView.swift | 4 +- Sources/LyrebirdShoeGazeUI/TunerView.swift | 2 +- 3 files changed, 42 insertions(+), 16 deletions(-) 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..