← ClaudeAtlas

iphone-duo-adaptivity-auditlisted

Find and fix legacy screen, orientation, idiom and lifecycle code that breaks on iPhone Duo's inner display and in other iOS 27 resizable environments (iPhone Mirroring, iPhone apps on iPad, Split View). Use when a developer asks about UIScreen.main or mainScreen, screen bounds or scale, interfaceOrientation or UIDevice orientation checks, userInterfaceIdiom layout forks, keyWindow or connectedScenes.first, migrating from app lifecycle to UIScene lifecycle (required with the latest SDK), UIRequiresFullScreen, portrait-only apps, or hard-coded Face ID strings and symbols (iPhone Duo has Touch ID; branch on LAContext.biometryType). Covers SwiftUI and UIKit, ships a read-only scanner, and delegates bulk UIKit rewrites to Xcode's own modernization skill when available. Not for app features that merely touch UIScreen or orientation, such as screen brightness, deliberately locking a game to one orientation, or camera and sensor setup.
Urbanrenewalroridula3044/iPhone-Duo-Agent-Skill · ★ 0 · AI & Automation · score 67
Install: claude install-skill Urbanrenewalroridula3044/iPhone-Duo-Agent-Skill
# iPhone Duo adaptivity audit The foundation for everything else: an app that decides layout from the screen, the orientation or the idiom is wrong on iPhone Duo before any foldable-specific work begins. ## Facts this skill relies on - The **outer display** behaves like other iPhones; the **inner display** is regular width × regular height. (Tech Talk 111461, 2:46) - The inner display **does not honor supported interface orientations**; in iOS 27 supported orientations are a preference ignored in resizable environments, and iPhone Mirroring always reports portrait. (111461 2:46; WWDC26 278 6:50) - Referencing the **main screen is ambiguous on a two-display device** and deprecated (the iOS 27 SDK header marks `mainScreen` deprecated). (111461 3:57; 278 2:51) Concretely: the iPhone Duo simulator's own profile names the **outer** display as `main-screen-*`, so an app that asks for the main screen gets the smaller of the two whichever display it is actually on. (`references/device-geometry.md`, measured) - The **user interface idiom is not meaningful for layout**: an iPhone app stays in the phone idiom while fully resizable. (111461 1:33; 278 6:17) - **UIScene lifecycle is required** when building with the latest SDKs; without it the app no longer launches. (278 2:10) - `UIRequiresFullScreen` no longer opts an app out of resizing from iOS 27: it gives discrete resizing, and iPhone Duo still resizes the app when it opens or closes and scales it on the inne