From 6a3c4fdca92aa1533a212d353a98af66fead8b4a Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Sat, 4 Jul 2026 21:21:44 -0700 Subject: [PATCH] iPad header: stop Mute toggle expanding; fix mixer overflow into CPU meters - The switch Toggle filled the row, pushing Bypass / Mute / Help / MIDI far right under the scope. fixedSize keeps them contiguous next to Tempo/Tuner under the title. - BoardBarView's control column (segmented picker + two sliders + bordered mute) is taller than 92pt with iOS control metrics and overflowed into the CPU meters; raise barHeight to 110. Co-Authored-By: Claude Opus 4.8 --- Sources/LyrebirdShoeGazeUI/BoardBarView.swift | 4 +++- Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/LyrebirdShoeGazeUI/BoardBarView.swift b/Sources/LyrebirdShoeGazeUI/BoardBarView.swift index c77b915..472cc48 100644 --- a/Sources/LyrebirdShoeGazeUI/BoardBarView.swift +++ b/Sources/LyrebirdShoeGazeUI/BoardBarView.swift @@ -41,7 +41,9 @@ public struct BoardBarView: View { // MARK: - Layout constants private static let barSpacing: CGFloat = 10 - private static let barHeight: CGFloat = 92 + // Tall enough for the control column's three rows of (iOS-chunky) segmented picker + sliders + + // bordered mute button, so it doesn't overflow into the CPU meters below. + private static let barHeight: CGFloat = 110 private static let cellSpacing: CGFloat = 8 private static let cellWidth: CGFloat = 104 private static let cellInnerSpacing: CGFloat = 5 diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index 4485412..3d8b792 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -550,11 +550,14 @@ public struct ShoeGazeBuilderView: View { 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). Toggle("Mute rig", isOn: Binding( get: { shoeGaze.tunerMutesRig }, set: { shoeGaze.tunerMutesRig = $0 } )) .toggleStyle(.switch) + .fixedSize() helpButton if let midi: MIDIController = midi { MIDIIndicatorView(controller: midi) { showMIDISheet = true }