diff --git a/Demo/ShoeGazeiOSDemo/Info.plist b/Demo/ShoeGazeiOSDemo/Info.plist index 6723281..9563314 100644 --- a/Demo/ShoeGazeiOSDemo/Info.plist +++ b/Demo/ShoeGazeiOSDemo/Info.plist @@ -30,7 +30,7 @@ UILaunchScreen UIRequiresFullScreen - + UISupportedInterfaceOrientations UIInterfaceOrientationLandscapeLeft @@ -40,6 +40,8 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index bbc17cc..c03b0fb 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -208,8 +208,21 @@ public struct ShoeGazeBuilderView: View { // MARK: - Body - /// `true` on narrow widths (iPhone, iPad portrait / split view) — the canvas-first layout. + /// `true` on iPad (any size) — the canvas-first layout with composition panels in sheets. The + /// docked desktop layout is macOS-only; on iPad it overflowed and clipped even at iPad-Pro + /// width, so every iPad size uses the sheet-based layout. macOS always uses the docked layout. private var isCompact: Bool { + #if os(iOS) + return true + #else + return false + #endif + } + + /// `true` on the smaller iPads / split-view widths, where even the canvas-first docked strip + /// (mixer + scope + Tempo/Tuner) is tight and more can move into sheets. Reserved for + /// size-specific tuning; `.regular` is a full-screen iPad. + private var isNarrow: Bool { #if os(iOS) return horizontalSizeClass == .compact #else @@ -220,9 +233,11 @@ public struct ShoeGazeBuilderView: View { public var body: some View { rootContent .padding(ShoeGazeBuilderView.outerPadding) + // A large min width is a macOS window sizing hint; on iPad it would force content wider than + // the screen and clip it, so the sheet-based iPad layout imposes no minimum width. .frame( - minWidth: ShoeGazeBuilderView.minWidth + ShoeGazeBuilderView.librarySidebarReserve, - minHeight: ShoeGazeBuilderView.minHeight + minWidth: isCompact ? nil : ShoeGazeBuilderView.minWidth + ShoeGazeBuilderView.librarySidebarReserve, + minHeight: isCompact ? nil : ShoeGazeBuilderView.minHeight ) .background( Color(