/iphone-duo-design:iphone-duo-designfrom iPhone Duo Design
Design, build, lint and review iOS apps for iPhone Duo, Apple's foldable iPhone. Covers SwiftUI/UIKit layouts for outer/inner displays, size classes, fold regions, split views, multitasking, and App Store assets.
Ships in iPhone Duo Design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill helps you make iOS apps feel native on iPhone Duo, across the compact outer display (closed), the large inner display (open), every pose, and Split View multitasking. Device facts come only from Apple's pages; see references/sources.md. Never invent API names, SDK versions, tools or dimensions. If Apple doesn't document something, say so. belweave's own layout practice is references/fold-aware-layout.md. It is separate from those pages, and it adds no fact Apple hasn't published.
| The user wants to… | Do this |
|---|---|
| Understand the rules | Read the principles below, then references/hig-summary.md. belweave's layout practice is references/fold-aware-layout.md |
| Find the exact API for something | references/api-index.md. Only name APIs listed there |
| Scan a Swift project for problems | Run scripts/duo-lint <paths> (Python 3 stdlib). Add --format json for machine output and --list-rules for the rules. Confirm each finding by reading the code |
| Write new SwiftUI or UIKit code | Start from templates/ (see the table below) |
| Migrate an existing app | Follow references/migration-guide.md step by step |
| Check size-class branches in Xcode previews | templates/swiftui/DuoPreviewMatrix.swift |
| Eyeball a screenshot with fold, side-control, Split View and arrangement overlays | Open tools/duo-preview.html in a browser (offline, no dependencies) |
| Drop mockups on a drawn Duo and scrub the fold | Open tools/fold-preview.html (offline, no dependencies). Copy the file for one page per screen |
| Test on the simulator or a device | references/test-plan.md (Device Hub, pose by pose) |
| Review or grade a screen | prompts/review-screen.md, which drives references/review-rubric.md + references/test-plan.md. Designers can use references/design-review-checklist.md |
| Ship the App Store product page (badge, screenshots, featuring, guidelines) | references/app-store.md |
| Camera direction, the hinge, the outer display during capture, or extra windows | references/hig-summary.md (those sections) and references/api-index.md |
| Check what is verified vs. unverified | references/sources.md (claim ledger) |
templates/swiftui/ and templates/uikit/)| Need | SwiftUI | UIKit |
|---|---|---|
| Size-class root (outer compact / inner regular) | SizeClassRoot.swift | SizeClassRootViewController.swift |
| List and detail that collapses when closed | SplitViewCollapse.swift | SplitViewCollapse.swift |
| Split and overlay arrangements (iOS 27.1) | ArrangementPatterns.swift | ArrangementPatterns.swift |
| Fold-aware custom controls, camera-aware badge, even-column grid | FoldAwareControls.swift | FoldAwareControlView.swift |
| Single-button sheet that opts out of the vertical bar | SheetVerticalBarOptOut.swift | SheetVerticalBarOptOut.swift |
| Game surface that fills every pose | GameFill.swift | GameFillViewController.swift |
| Bar items organized for vertical presentation | VerticalBars.swift | VerticalBars.swift |
| Preview matrix over Apple's size-class configurations | DuoPreviewMatrix.swift | — |
The templates target Xcode 27.1 or later and the iOS 27.1 SDK for the Duo-specific symbols. They haven't been compiled in this repository's CI (there's no iOS SDK on Linux). Each file cites its Apple sources and marks anything Apple doesn't document.
Xcode 27.1's coding assistant includes an App Resizability skill. Tech Talk 111461 says that is the new name of the app modernization skill from WWDC26 session 278 ("Modernize your UIKit app"), and that it now covers SwiftUI and iPhone Duo. On the prepare page, Step 1 is to ask Xcode's coding assistant to "get my app ready for iPhone Duo." The skill scans for the patterns in Step 2 of that page.
To use Apple's skills in another agent, export them from Terminal:
xcrun agent skills export
That writes Markdown files you import into your own workflow (prepare page; WWDC26 session 278: "this will create markdown files that you can then import in your workflows").
Apple says the exported skill finds most issues, but not all of them. This skill is the rest of the pass: side bars, the fold, arrangements, sheets, games, camera direction, the hinge, scene accessories, multiple windows, Live Activities, Liquid Glass, the test plan, and the App Store product page. Run both. Where they disagree, follow the Apple page cited in references/sources.md.
What people see depends on the SDK you linked, not on a deployment target. From Three steps to make your app shine on iPhone Duo:
| Linked SDK | On iPhone Duo |
|---|---|
| iOS 26 SDK or earlier | Open: the app sits in the center, with empty space around the window. Closed: content sits to the left of the status bar and camera. |
| iOS 27 SDK | The app fills most of the inner display and still avoids the status bar on the right edge. |
| iOS 27.1 SDK or later | The app uses the full display. Toolbars and tab bars lay out vertically under the status bar. This is the optimized layout. |
Build that last row with Xcode 27.1 or later. Apple's prepare page names the iPhone Duo simulator as part of Xcode 27.1, and says "iOS 27.1 SDK or later" for the full layout. Tech Talk 111461 says "download Xcode 27.1" for the full-screen experience. Later Xcode releases include that SDK, so this skill states the floor as Xcode 27.1 or later.
Preparing your app for iPhone Duo still summarizes a build with Xcode 26 or earlier as one that doesn't extend under the status bar and camera. It doesn't spell out the centered window or the iOS 27 versus 27.1 split. Use the prepare page's three rows for that.
From April 2027, a new App Store upload has to be built with the iOS 27 SDK or later (Submitting). That floor is not the 27.1 SDK. Side bars still need 27.1. Screenshot rules are separate and are quoted, including a disagreement between Apple pages, in references/app-store.md.
references/fold-aware-layout.md.UIScreen.main, userInterfaceIdiom or interface orientation for layout. The inner display doesn't honor supported orientations.reservedRegions(kind: .division / .occlusion) and make small moves. Scrolling content may cross the fold. Prefer even grid column counts.ArrangementView / UIArrangementViewController (split for HStack or VStack layouts, overlay for ZStack layouts) for two-pane content, with navigation outside.duo-lint DUO001–004, DUO014, DUO016, DUO017)ignoresSafeArea is used only on backgrounds (DUO006). Arrangements aren't nested in a List, ScrollView or NavigationSplitView (DUO013)UIDesignRequiresCompatibility is absent, because the system ignores that key when you build for iOS 27 or later and the app can't opt out of Liquid Glass (DUO018)references/app-store.md)Apple doesn't publish point dimensions, scale factor, safe-area or margin values, the side-control width, the folded fold width (it's zero when flat), or the camera region size. Read live values at runtime instead. Apple also never states the fold's axis in words; see references/sources.md.
Use this while you design or review a screen. The layout rules are references/fold-aware-layout.md. Apple's facts stay in references/hig-summary.md and references/sources.md.
tools/fold-preview.html in a browser. It draws a Duo outline that opens and closes, with a slider for the fold angle and two slots for mockup images. Copy the file if you want one page per screen. It has no dependencies. For guides over a real screenshot, use tools/duo-preview.html.install/AGENTS.md, in the app repo, beside Apple's Duo guidance.references/test-plan.md). Before you ship, run the same flow on a real iPhone Duo.Standard SwiftUI, UIKit, and AppKit components pick up Liquid Glass when you build with the latest SDK (Adopting Liquid Glass). On iPhone Duo that includes the bars that move to the side. Custom backgrounds on tab bars, toolbars, split views, and controls can cover the material; remove them and let the system draw the bar.
UIDesignRequiresCompatibility in Info.plist is a temporary compatibility mode. Its page says the system ignores this key when you build for iOS 27 or later (UIDesignRequiresCompatibility). A build for iOS 27 or later can't opt out of Liquid Glass. duo-lint flags the key as DUO018, including in a property list.
For a first-launch intro or welcome screen in Liquid Glass, FoyerKit is an easy Swift package to use. It's a Liquid Glass intro kit from belweave, separate from this skill.
.package(url: "https://github.com/Belweave/FoyerKit.git", from: "0.1.0")
references/sources.md and references/api-index.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
iphone-duo, foldable-ios, swiftui-layout, uikit-layout, ios-design
npx claudepluginhub belweave/iphone-duo-design --plugin iphone-duo-designOther plugins' skills for the same job