← ClaudeAtlas

iphone-duo-layoutlisted

Use this skill when an app's layout or geometry breaks or wastes space on iPhone Duo's foldable inner display: layouts that should become multi-column in regular × regular size classes, NavigationSplitView or TabView sidebars on the inner screen, a phone-width column stuck in the middle, safe-area insets that differ left and right, content or floating controls crossed by the hinge in book or tabletop pose, the FaceTime camera covering UI, or video letterboxing on the wide inner screen. Also use it for the iOS 27.1 layout APIs: reservedRegions (division, occlusion, right-to-left mirroring), ReservedRegion / UIView.ReservedRegion, ArrangementView / UIArrangementViewController split or overlay with their ratio, edge and axis modifiers, and ConcentricRectangle / UICornerConfiguration. Follows Apple's iPhone Duo tech talks and documentation. Not for toolbar items or overflow menus, removing idiom or orientation checks, hinge-angle interactions, or generic SwiftUI and Auto Layout bugs unrelated to the foldable.
Urbanrenewalroridula3044/iPhone-Duo-Agent-Skill · ★ 0 · Web & Frontend · score 67
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,