From 722c8d906932870bc50d48e81defb3335b05f649 Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Sat, 4 Jul 2026 21:02:29 -0700 Subject: [PATCH] iPad: move header panel row to full width so it isn't clipped in portrait The panel/toggle row (Rigs / Pedals / Settings / Bypass / Mute rig / help / MIDI) sat in the header's left column beside the wide scope, so in the narrower portrait width its right end (Mute rig, help, MIDI) was cut off. Move it to a full-width row beneath the title + scope + transport; it now fits portrait and still scrolls on very narrow (split-view) widths. Tempo/Tuner stay under the title. Co-Authored-By: Claude Opus 4.8 --- Demo/ShoeGazeBuilderiOS/Info.plist | 63 ++++++++-------- .../ShoeGazeBuilderView.swift | 73 ++++++++++--------- 2 files changed, 70 insertions(+), 66 deletions(-) diff --git a/Demo/ShoeGazeBuilderiOS/Info.plist b/Demo/ShoeGazeBuilderiOS/Info.plist index a757288..4523768 100644 --- a/Demo/ShoeGazeBuilderiOS/Info.plist +++ b/Demo/ShoeGazeBuilderiOS/Info.plist @@ -2,6 +2,21 @@ + CFBundleDocumentTypes + + + CFBundleTypeName + ShoeGaze Document + CFBundleTypeRole + Editor + LSHandlerRank + Owner + LSItemContentTypes + + net.realizedsound.shoegaze + + + CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -22,6 +37,18 @@ Copyright © 2026 realizedsound. All rights reserved. NSMicrophoneUsageDescription ShoeGaze Builder can route a hardware input channel through your pedalboard. Enable microphone access to use Live Input mode. + NSUbiquitousContainers + + iCloud.net.realizedsound.ShoeGazeData + + NSUbiquitousContainerIsDocumentScopePublic + + NSUbiquitousContainerName + ShoeGaze + NSUbiquitousContainerSupportedFolderLevels + Any + + UIApplicationSceneManifest UIApplicationSupportsMultipleScenes @@ -40,45 +67,19 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight - - NSUbiquitousContainers - - iCloud.net.realizedsound.ShoeGazeData - - NSUbiquitousContainerIsDocumentScopePublic - - NSUbiquitousContainerName - ShoeGaze - NSUbiquitousContainerSupportedFolderLevels - Any - - - CFBundleDocumentTypes - - - CFBundleTypeName - ShoeGaze Document - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - net.realizedsound.shoegaze - - + UIInterfaceOrientationPortrait UTExportedTypeDeclarations - UTTypeIdentifier - net.realizedsound.shoegaze - UTTypeDescription - ShoeGaze Document UTTypeConformsTo public.json + UTTypeDescription + ShoeGaze Document + UTTypeIdentifier + net.realizedsound.shoegaze UTTypeTagSpecification public.filename-extension diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index 5a365c2..eb8f99b 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -500,48 +500,51 @@ public struct ShoeGazeBuilderView: View { /// horizontally scrollable row of panel toggles that open the composition sheets. private var compactHeader: some View { _ = transportTick - // Left column fills the vertical space under the title with the panel/toggle rows; the - // right column carries the scope + transport. Top-aligned so nothing floats mid-header. - return HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) { - VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) { - HStack(spacing: ShoeGazeBuilderView.rowSpacing) { - VStack(alignment: .leading, spacing: 1) { - Text("ShoeGaze Builder").font(.headline).bold() - .foregroundStyle(Color.white) - currentRigLabel + // 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. + return VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) { + HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) { + VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) { + HStack(spacing: ShoeGazeBuilderView.rowSpacing) { + VStack(alignment: .leading, spacing: 1) { + Text("ShoeGaze Builder").font(.headline).bold() + .foregroundStyle(Color.white) + currentRigLabel + } + if shoeGaze.isRecording { recordingBadge } } - if shoeGaze.isRecording { recordingBadge } + + HStack(spacing: ShoeGazeBuilderView.rowSpacing) { + TempoView(shoeGaze: shoeGaze) + TunerView(shoeGaze: shoeGaze) + } + .environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled) } - compactPanelRow + Spacer(minLength: ShoeGazeBuilderView.rowSpacing) - HStack(spacing: ShoeGazeBuilderView.rowSpacing) { - TempoView(shoeGaze: shoeGaze) - TunerView(shoeGaze: shoeGaze) + // A narrow scope sits left of the transport cluster to use the header's dead space. + ShoeGazeScopeView(shoeGaze: shoeGaze) + .frame( + width: ShoeGazeBuilderView.compactHeaderScopeWidth, + height: ShoeGazeBuilderView.compactHeaderScopeHeight + ) + // Transport stays on screen (performance): Start / Stop over Record. + VStack(alignment: .trailing, spacing: ShoeGazeBuilderView.rowSpacing) { + EngineConfigView( + shoeGaze: shoeGaze, + hardwareSampleRate: hardwareSampleRate, + onConfigApplied: { transportTick.toggle() }, + transportOnly: true + ) + #if !os(macOS) + recordButton + #endif } - .environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled) } - Spacer(minLength: ShoeGazeBuilderView.rowSpacing) - - // A narrow scope sits left of the transport cluster to use the header's dead space. - ShoeGazeScopeView(shoeGaze: shoeGaze) - .frame( - width: ShoeGazeBuilderView.compactHeaderScopeWidth, - height: ShoeGazeBuilderView.compactHeaderScopeHeight - ) - // Transport stays on screen (performance): Start / Stop over Record. - VStack(alignment: .trailing, spacing: ShoeGazeBuilderView.rowSpacing) { - EngineConfigView( - shoeGaze: shoeGaze, - hardwareSampleRate: hardwareSampleRate, - onConfigApplied: { transportTick.toggle() }, - transportOnly: true - ) - #if !os(macOS) - recordButton - #endif - } + compactPanelRow } }