Skip to content
Back to skills

Iphone Duo

ASecurity

Use when adapting an existing iOS app (SwiftUI or UIKit) for iPhone Duo, Apple's folding iPhone, or when fixing layouts that break at new sizes, in landscape, around the fold, or with vertical toolbars and tab bars on iOS 27.1. Covers the audit, the phased checklist, fold-aware SwiftUI patterns, pitfalls and simulator testing.

  • 4 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 14, 2026
developmentswiftbashtestingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add aivars/iphone-duo-playbook --skill iphone-duo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Iphone Duo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Iphone Duo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aivars-iphone-duo/badge)](https://www.skillsdirectory.com/skills/aivars-iphone-duo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: iphone-duo
description: Use when adapting an existing iOS app (SwiftUI or UIKit) for iPhone Duo, Apple's folding iPhone, or when fixing layouts that break at new sizes, in landscape, around the fold, or with vertical toolbars and tab bars on iOS 27.1. Covers the audit, the phased checklist, fold-aware SwiftUI patterns, pitfalls and simulator testing.
---

# iPhone Duo

Read `playbook.md` in this folder in full before changing any code. It is the source of truth; this file only sets the order of work.

1. Run `bash audit.sh <repo> --details` (next to this file), report the counts, and inspect the hits. They are audit signals, not automatic defects.
2. Check the selected SDK, deployment target and existing changes. Work applicable Phase 1 items (playbook §3) in small, reviewable changes with tests after each. Follow the user's authorization requirements for commits and external actions.
3. Use Phase 2's 27.0 APIs with the 27.0 SDK and its 27.1 APIs only with the 27.1 SDK or newer. `#available` guards older runtimes; it does not make a new symbol compile with an older SDK. Preserve deployment targets and fallbacks unless agreed otherwise.
4. Base layout on available space and reserved regions, not device-model, idiom or hinge-angle pose checks. Do not mechanically remove non-layout checks. Never hard-code §1 device measurements. Choose active-only or inactive-region layout deliberately; use active divisions when flat content should flow normally. Keep coordinate-space and RTL policies consistent (§5).
5. Preserve state above changing layout branches. Visually inspect affected screens on both Duo displays, in each relevant pose, and on regular iPhones. Run §7's accessibility, RTL, keyboard, live-transition and real-navigation checks; a screen catalog alone is insufficient.
6. Report changes, checks passed, blocked or untested configurations, and remaining playbook gaps. Distinguish simulator evidence from hardware validation. For release work, follow Phase 3 artifact checks and record the actual upload, submission, approval or release state; validate assets using the chosen legacy or App Asset Library workflow (§8). Do not publish, release or reset installations containing needed data without authorization.

Files in this skill

  • SKILL.md2 KB
  • audit.sh2.4 KB
  • playbook.md49.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.