# iPhone Duo Adaptivity Audit

> Find and fix legacy screen, orientation, idiom and lifecycle code that breaks in iOS 27 resizable environments.

iPhone Duo Adaptivity Audit is a paid AI agent skill on Agensi by Aleksei Kakoulin, in Mobile Development. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.99 (one-time purchase)
- Creator: [Aleksei Kakoulin](https://www.agensi.io/creators/proteinunit)
- Category: [Mobile Development](https://www.agensi.io/skills/mobile-development)
- Version: 1.0
- Last updated: 2026-10-05
- Security: scan passed (2026-10-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/iphone-duo-adaptivity-audit
- Tags: mobile, ios, swiftui, uikit, iphone-duo, foldable, xcode, uiscene

## About this skill

The inner display of iPhone Duo, iPhone Mirroring, iPhone apps on iPad and Split View all resize your app. Code that reads the main screen, the device orientation or the idiom gets wrong values there. This skill finds that code and replaces it with values from the view's own window and traits.

### What it does

- **Finds legacy screen code:** `UIScreen.main`, screen bounds and scale, `keyWindow` and `connectedScenes.first`.
- **Removes layout forks on orientation and idiom:** replaces them with size classes and the container size.
- **Plans the UIScene migration:** the latest SDK requires the UIScene lifecycle, or the app does not launch.
- **Checks `UIRequiresFullScreen`:** from iOS 27, it no longer opts the app out of resizing.
- **Fixes Face ID assumptions:** iPhone Duo has Touch ID, so copy and symbols branch on `LAContext.biometryType`.

### How it works

1. A read-only scanner (`duo_scan.py`) lists every match with a rule ID.
2. The skill reads each match and classifies it: replace, keep with a reason, or ask you.
3. If Xcode 27 has its UIKit modernization skill, this skill uses it for bulk UIKit rewrites.
4. You approve each change. The skill applies it, builds and scans again.

### Works with

SwiftUI and UIKit apps in Xcode. The skill references include before-and-after code for each replacement.

### Why use this skill

This is the base for all other iPhone Duo work. A layout that depends on the screen, the orientation or the idiom is wrong on iPhone Duo before any foldable-specific change.

## Known limitations

The scanner matches single-line patterns and joined member chains. It does not see macros or generated code, so some matches need a manual search. Bulk UIKit rewrites through Xcode's modernization skill need Xcode 27.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the iPhone Duo Adaptivity Audit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Why should I use this audit instead of just relying on my existing responsive layouts?

This skill identifies and replaces hardcoded values like `UIScreen.main` and device orientation checks with modern, container-aware logic. This ensures your app layouts respond correctly when users resize windows or switch displays on the iPhone Duo.

### Which AI agents and development environments are compatible with this skill?

The skill requires Xcode 16+ and is optimized for AI agents with file-system access, such as GitHub Copilot Extensions or Cursor. It works across both SwiftUI and UIKit lifecycles, though it specifically targets the transition to UIScene.

### Does this skill support legacy UIKit apps, or is it strictly for SwiftUI?

Yes, the skill is designed to handle hybrid projects. It identifies legacy UIKit idioms and replaces them with modern Traits, while ensuring SwiftUI views are using the correct Environment values rather than global screen statics.

### Will this skill automatically overwrite my source code without my review?

The audit performs a safe, read-only scan first. Every suggested change is presented as a diff for your approval, and it integrates with Xcode’s build system to verify that the modernizations don't break your existing implementation.

### How does this audit handle iPhone Duo-specific hardware, like Touch ID?

While this skill focuses on universal adaptivity (screen bounds and traits), it specifically adds logic to handle the Touch ID sensors found on iPhone Duo, ensuring your biometric authentication flows don't crash or default to incorrect UI symbols.

### What exactly is included in the purchase, and will I get updates for new iOS 27 betas?

Purchasing this skill grants you access to the `duo_scan.py` tool and the AI instruction set. You will also receive free compatibility updates for the duration of the iOS 27 beta cycle to ensure the rules align with Apple's latest API changes.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
