Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

iphone-duo-readiness

БесплатноБез исполняемых скриптовНе проверен

Audit and port an iOS app to iPhone Duo, Apple's first foldable iPhone. Use when asked to support, adapt, prepare, test, or review an app for iPhone Duo…

mirzaaghazadehот mirzaaghazadeh★ 349 звёзд на GitHub

Об этом скилле

Get an iOS app ready for iPhone Duo

iPhone Duo is Apple's first foldable iPhone: a 5.4-inch outer display and a 7.6-inch inner display sharing one aspect ratio, joined by a hinge the user can leave at any angle. An existing iPhone app runs on it unchanged — but it will look like an app that has not been thought about.

This skill is the entry point. Work the checklist, then hand off to the specialist skill for whatever the app actually does.

The one idea to hold onto

iPhone Duo is not a new idiom. It is a wider continuum of sizes.

Every mistake in this port comes from an app asserting something fixed: this idiom, this orientation, this screen, this width, this symmetric inset. Every fix is the same shape — replace the assertion with a question about the space actually available right now.

If you find yourself writing a branch that means "if iPhone Duo", stop. Write a branch on size class or available space instead, and it will be right on iPad, in Split View, under iPhone mirroring, and on whatever ships next.

Step 1 — Establish the baseline

Find out what the app is building against, because the SDK is the gate:

Built against Behavior on iPhone Duo
iOS 26 SDK or earlier Runs, but doesn't adapt. Open, the app sits centered with empty space around it. Closed, content shows to the left of the status bar and camera.
iOS 27 SDK Resizes to fill most of the inner display, but still avoids the status bar on the right edge.
iOS 27.1 SDK or later Extends to the full display, with toolbars and tab bars vertical below the status bar. Unlocks the reserved-region and arrangement APIs.

Check the deployment target and the SDK in the project, then say plainly which tier the app is in. Getting to the 27.1 tier is the single highest-leverage change; almost everything else in this skill assumes it.

One caution before you ship at the 27.1 tier: that's the point where the bars go vertical, so confirm the content adapts to that before releasing. Jumping tiers without checking is how an app ends up with controls overlapping its own layout.

Let the tooling do the first pass

Xcode ships an App Resizability skill (renamed from the app modernization skill; it now covers SwiftUI and iPhone Duo). In Xcode, ask the coding assistant to get my app ready for iPhone Duo and it scans for the patterns in Step 2, explaining each and proposing a fix.

Not using Xcode's assistant? Export the skill and use it in another agent:

xcrun agent skills export

It catches most issues but not all, so still work Step 2 by hand afterwards.

Then look at it running

Three tools, in increasing fidelity:

  • The iOS resizable simulator in Device Hub — fastest way to find layouts that break under arbitrary sizes.
  • iPhone Mirroring on macOS 27 — resize the window to extremes in both directions. Good for catching cached-size bugs.
  • The iPhone Duo simulator in Xcode 27.1 — the only one that gives you the real thing. Drive open, close, rotate and fold, and try Split View by dragging the app to one side with the home indicator.

Bugs here are visual and pose-dependent. You will not find them by reading code.

Step 2 — Hunt the fixed assumptions

Grep the codebase for these. Each one is a real defect on this device:

Orientation branches. Grep for UIDevice.current.orientation, statusBarOrientation, and interfaceOrientation — including windowScene.effectiveGeometry.interfaceOrientation. The inner display does not honor supported interface orientations, and orientation no longer tells you what shape your app is. To learn whether you're wider than tall, compare width and height of the space you actually have: view.bounds in a view controller, superview.bounds in a view, or the GeometryReader size in SwiftUI.

UIScreen.main. Ambiguous on a two-display device and slated for deprecation. Each use has a specific replacement:

Instead of Use
UIScreen.main.bounds view.bounds / window.bounds; GeometryReader or onGeometryChange in SwiftUI
UIScreen.main.scale traitCollection.displayScale, or @Environment(\.displayScale)
UIWindow(frame: UIScreen.main.bounds) UIWindow(windowScene:)
A stored UIScreen view.window?.windowScene?.screen, read on demand

Size read once, then cached. This one hides well. Reading size at launch — or in viewIsAppearing — isn't enough, because a fold resizes your app mid-session. Do size-dependent layout in layoutSubviews / viewDidLayoutSubviews, and use viewWillTransition(to:with:) for work that must run on the change itself.

"Regular width means iPad." The trap most likely to produce a visibly wrong screen. Plenty of apps show an iPad-only layout when horizontalSizeClass == .regular, and assume iPhone is always compact. The inner display is regular width, so that iPad layout now runs on a phone. Check both directions: branches that

Полный SKILL.md на GitHub

Установить iphone-duo-readiness в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл iphone-duo-readiness?

Audit and port an iOS app to iPhone Duo, Apple's first foldable iPhone. Use when asked to support, adapt, prepare, test, or review an app for iPhone Duo, foldable iPhone, the inner/outer display, device poses, or the fold. Entry point that routes to the layout, bars, hinge/scenes, camera, and design skills.

Как установить скилл iphone-duo-readiness?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл iphone-duo-readiness запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить iphone-duo-readiness с