Repository navigation
Closed
Labels
enhancementNew feature or requestin-progressImplementation started, work still incompleteiosPrimary iOS workpriority: mediumNon-blocking V1 work and polishtabletTablet and wide-screen layout
Description
On iPhone Duo, the iOS app uses both displays natively: the iPad split on the inner display with its divider in the fold, and Duo-style vertical bars in the trailing status rail.
Design (prototype variant D):
- Build on the iOS 27.1 SDK (Xcode 27.1). Builds on older SDKs don't use the whole display: with the iOS 26 SDK the app sits centred in the open inner display with empty space around it; with the iOS 27 SDK it still keeps clear of the status bar.
- Show the split when the window is regular width × regular height and has at least 681pt of usable width (280pt minimum sidebar, divider, 400pt minimum detail). Drop the
idiom == .padcheck inOpenCodeSplitPaneLayout.usesSplitLayout(OpenCodeSplitPaneLayout.swift:72), because Duo reports.phonein every pose. Open, turned (669pt usable) and the outer display stay stacked. - Put the default divider in the fold: a 455pt sidebar, a 40pt fold gap, then the chat. The chat gets 372pt, because the status rail takes 84pt of the right half.
- Keep the split resizable as on iPad (280–480pt, collapse below 220pt). Releasing within 24pt of the fold snaps the divider into the fold gap. In Book pose the fold region is active, so the divider stays locked to the fold.
- Session Chat and Home actions follow the system vertical bar:
- Titles (and the project · live subtitle) stay in the top bar.
- Back goes first and More second, in the trailing rail under the status column, in every pose except Open, turned.
- The sidebar keeps its own horizontal bar and the sidebar toggle. With the sidebar hidden, the toggle stays at the leading edge of the top bar. There is still no Back button there.
- iOS doesn't convert custom bars, so this needs one of two approaches:
- System toolbar items with a symbol and a title.
OpenCodeTopBarreadstoolbarVerticalEdgeand draws its actions in the trailing inset.
- The selected session survives fold ↔ unfold (split ↔ stacked).
- Transcript and composer keep the 720pt readable column (
OpenCodeLayout.contentMaxWidth).
Measured in the iOS 27.1 iPhone Duo simulator:
| Pose | Points | Size class | Safe area t/r/b/l |
|---|---|---|---|
| Closed | 466×678 | compact × regular | 0/84/34/0 |
| Closed, turned | 678×466 | compact × compact | 0/84/34/0 |
| Open / Book | 951×669 | regular × regular | 0/84/34/0 |
| Open, turned | 669×951 | regular × regular | 82/0/34/0 |
- The fold is at x 455–495 (y 455–495 when turned).
- The status column is 84×170pt when closed and 84×120pt when open. The outer camera hole sits at the top of that column.
- With the top inset at 0, system bars still sit at y 24–72. Our
OpenCodeTopBar(40pt buttons at 28–68) clears the 55pt corner. - Rail items are 48pt on a 60pt pitch. First item centres: Open (902, 147), Closed (417.5, 198), Closed, turned (629.5, 48).
- Only the detail column's items go vertical.
- In Open, turned the bars stay horizontal and sit inside the 82pt status band.
Prototype: shared privately, not linked here. Device reference: docs/devices/iphone-duo.md (#726).
Android: No counterpart. iPhone Duo is iOS hardware.
Shipped in #725: split gate, fold-aligned divider with detent and Book lock, Duo vertical bar in OpenCodeTopBar, fold ↔ unfold continuity, verified in every simulator pose. The iOS 27.1 calls are compiled only against the iOS 27.1 SDK (#if canImport(SwiftUI, _version: 8.0.85)).
Remaining:
- Move the CI release runner (self-hosted, Xcode 26.6 / iOS 26.5 SDK today) to Xcode 27.1, so release builds include fold detection and the vertical bar
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestin-progressImplementation started, work still incompleteiosPrimary iOS workpriority: mediumNon-blocking V1 work and polishtabletTablet and wide-screen layout
Activity
#723 Build iPhone Duo support with the Xcode 26 SDK on CI
#723 iPhone Duo device reference (#726)
#723 Address review: host leases on leave, rail on first frame
#723 iPhone Duo support on iOS (#725)