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 <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,9 @@ public struct BoardBarView: View {
|
|||||||
// MARK: - Layout constants
|
// MARK: - Layout constants
|
||||||
|
|
||||||
private static let barSpacing: CGFloat = 10
|
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 cellSpacing: CGFloat = 8
|
||||||
private static let cellWidth: CGFloat = 104
|
private static let cellWidth: CGFloat = 104
|
||||||
private static let cellInnerSpacing: CGFloat = 5
|
private static let cellInnerSpacing: CGFloat = 5
|
||||||
|
|||||||
@@ -550,11 +550,14 @@ public struct ShoeGazeBuilderView: View {
|
|||||||
TempoView(shoeGaze: shoeGaze)
|
TempoView(shoeGaze: shoeGaze)
|
||||||
TunerView(shoeGaze: shoeGaze)
|
TunerView(shoeGaze: shoeGaze)
|
||||||
rigBypassButton
|
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(
|
Toggle("Mute rig", isOn: Binding(
|
||||||
get: { shoeGaze.tunerMutesRig },
|
get: { shoeGaze.tunerMutesRig },
|
||||||
set: { shoeGaze.tunerMutesRig = $0 }
|
set: { shoeGaze.tunerMutesRig = $0 }
|
||||||
))
|
))
|
||||||
.toggleStyle(.switch)
|
.toggleStyle(.switch)
|
||||||
|
.fixedSize()
|
||||||
helpButton
|
helpButton
|
||||||
if let midi: MIDIController = midi {
|
if let midi: MIDIController = midi {
|
||||||
MIDIIndicatorView(controller: midi) { showMIDISheet = true }
|
MIDIIndicatorView(controller: midi) { showMIDISheet = true }
|
||||||
|
|||||||
Reference in New Issue
Block a user