iphone-duo-layoutlisted
Install: claude install-skill Urbanrenewalroridula3044/iPhone-Duo-Agent-Skill
# iPhone Duo layout
Layout on iPhone Duo is ordinary adaptive layout pushed further: two displays with
different size classes, a hinge that divides the inner display when folded, and
cameras that occlude part of it. Start from system containers — most of the behavior
comes for free — and add custom work only where a container cannot express it.
Code: `references/layout-code.md`. Availability: `references/api-availability.md`
(reserved regions, arrangements and `ContentMarginGuide` need the **iOS 27.1 SDK**,
which ships with Xcode 27.1 — on that toolchain they need a deployment-target gate,
not a blocked entry). Physical facts — display sizes, where the cameras and fold sit,
poses, drawing mockups: `references/device-geometry.md` (never a layout input).
## 1. Size classes, not devices (Tech Talk 111461, 2:46)
- Outer display: like other iPhones. Inner display: regular × regular — room for
sidebars and multiple columns.
- Drive layout from `horizontalSizeClass` / `verticalSizeClass` (environment in
SwiftUI, trait collection in UIKit) and from the container size; never from
orientation or idiom (`iphone-duo-adaptivity-audit` owns removing those).
- Design across a continuum of sizes (1:33). A fixed phone-width column centered on
the inner display is a finding: propose two columns, a split view, or a grid.
- Keep functionality and state the same on both displays; show one more level of
hierarchy on the inner display where it fits (Mail: list or message when closed,