iphone-duo-playbook

agent
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Pass
  • Code scan — Scanned 5 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Practical guide to bringing an iPhone app to iPhone Duo: checklist, fold-aware SwiftUI patterns, pitfalls, simulator testing, audit script and a Claude Code skill.

README.md

iPhone Duo Playbook

A practical guide to bringing an existing iPhone app to iPhone Duo, Apple's first folding iPhone. Written for iOS developers and the coding agents they work with.

It combines Apple's documentation, the six iPhone Duo Tech Talks and the Group Lab Q&A with field notes from adapting and releasing several SwiftUI apps: measured fold positions, layout experiments, testing traps, and verified release artifacts. Physical Duo validation remains a separate step.

Read the playbook

Get the update by email. This version covers Xcode 27.1 and 27.2, October release lessons and the announced April 2027 submission requirements. I'll update it as APIs change and after testing on real Duo hardware. Join the newsletter to get the changes.

What's inside

  • The device: size classes, orientation, the SDK gate (Xcode 26, 27.0, 27.1), and test sizes with their Apple sources
  • Five rules and a phased checklist: no iOS 27 APIs (Xcode 26 or 27), iOS 27.0 and 27.1 APIs, App Store
  • An API quick reference for SwiftUI and UIKit
  • Fold-aware SwiftUI patterns: two pages in landscape, focal element above the hinge, cards centered on one page, RTL and viewport/content coordinate handling
  • Pitfalls and dead ends, including what the outer display can't do
  • Simulator testing: capturing each display, a screen catalog, live transitions, accessibility, keyboard and state-continuity checks
  • Screenshots, the App Asset Library migration, release verification and App Store featuring
  • An audit script and a ready-made prompt for a coding agent

Use it with a coding agent

Claude Code: install the skill.

git clone https://github.com/aivars/iphone-duo-playbook.git
cp -R iphone-duo-playbook/skills/iphone-duo ~/.claude/skills/

Then ask: "Get this app ready for iPhone Duo."

Other agents: point them at PLAYBOOK.md and use the prompt in §11.

Run the audit

./scripts/duo-audit.sh ~/Developer/YourApp
./scripts/duo-audit.sh ~/Developer/YourApp --details

It counts regex matches for screen-based layout, idiom and orientation checks, fixed sizes, text-only buttons, sheets and more. --details adds file and line references. Signals, not verdicts: read each hit before changing it. This is not a Swift parser or a readiness certification.

Maintaining this guide

After editing the playbook or audit script, run bash scripts/sync-skill.sh to update the installable copies. Run python3 scripts/test-audit.py and python3 scripts/check-swift-examples.py to validate the audit behavior and type-check the layout examples. The Swift check needs Xcode 27.1 or newer; it does not replace visual or hardware testing.

Watch it being built

I migrated my own apps to iPhone Duo on live streams, with AI coding agents doing much of the work. YouTube · Can the Simulator Replace an iPhone Duo for App Testing?

Corrections welcome

APIs and behaviour may change before and after launch. If something here is wrong or missing, open an issue or a pull request.

License

MIT. Apple's documentation, Tech Talks and Xcode's bundled agent skills belong to Apple; this repo links to them and does not copy them.

By Aivars Meijers, indie iOS developer.

Reviews (0)

No results found