# AI use cases for Iphone Duo Skills (mirzaaghazadeh/iphone-duo-skills)

Repo: [mirzaaghazadeh/iphone-duo-skills](https://github.com/mirzaaghazadeh/iphone-duo-skills) | Use cases: 5 | Page: https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/

A set of agent skills, installed as SKILL.md files, that give AI coding agents structured guidance for building and porting apps on iPhone Duo, Apple's first foldable iPhone.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Audit a SwiftUI or UIKit app for iPhone Duo readiness: https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/audit-ios-app-for-iphone-duo-readiness/
- Make a capture app handle iPhone Duo's two front cameras: https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/make-camera-app-handle-both-front-cameras/
- Review a screen design for foldable poses and fold avoidance: https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/review-screen-designs-for-foldable-poses/
- Port a Flutter app layout to iPhone Duo: https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/port-flutter-app-to-iphone-duo/
- Keep game touch controls clear of the fold: https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/plan-game-touch-controls-clear-of-fold/

## How to audit a SwiftUI or UIKit app for iPhone Duo readiness with Iphone Duo Skills

Repo: [mirzaaghazadeh/iphone-duo-skills](https://github.com/mirzaaghazadeh/iphone-duo-skills) | Difficulty: Intermediate | Time: 30 minutes | Basis: From the README

Find fixed-size, orientation and symmetric-inset assumptions in an iOS app before the fold breaks them.

**Who it is for:** An iOS developer who has an existing SwiftUI or UIKit app and needs to know what will break on iPhone Duo.

**The problem:** Apps often assume one idiom, one orientation, one screen width or symmetric safe areas. On a foldable these assumptions cause layout defects that are hard to spot by reading code.

**The outcome:** A list of fixed assumptions in the codebase, each with a fix that asks about the space available now, plus routing to the specialist skills for each problem found.

### Steps

1. Run `npx skills add mirzaaghazadeh/iphone-duo-skills --skill iphone-duo-readiness`
2. Restart your agent session so the skill appears.
3. Open your iOS project in the agent and ask it to run the readiness audit on the app.
4. Review each flagged item, starting with orientation checks, UIScreen.main use and safe-area math.
5. Follow the routing to iphone-duo-adaptive-layout or iphone-duo-vertical-bars for the items that need deeper changes.

### Prompt to paste into your agent

```text
Using the iphone-duo-readiness skill from mirzaaghazadeh/iphone-duo-skills, audit <path-to-ios-app> for fixed assumptions about idiom, orientation, screen width and symmetric safe-area insets. Output a table of findings with file, line and suggested replacement, and verify that no fix branches on orientation or idiom instead of size class.
```

### Caveat

The skills describe iPhone Duo APIs from Apple documentation that the README says is still partly pending, so confirm any API you adopt against your Xcode 27.1 SDK.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/audit-ios-app-for-iphone-duo-readiness/

## How to make a capture app handle iPhone Duo's two front cameras with Iphone Duo Skills

Repo: [mirzaaghazadeh/iphone-duo-skills](https://github.com/mirzaaghazadeh/iphone-duo-skills) | Difficulty: Advanced | Time: 60 minutes | Basis: From the README

Get camera direction, mirroring and preview right on a device with two front-facing cameras.

**Who it is for:** A developer maintaining a photo or video app that needs to work correctly on iPhone Duo's front cameras.

**The problem:** The two front cameras and the question of which way a camera faces are AVFoundation-level details that the default camera code may not handle.

**The outcome:** A capture flow that chooses between the virtual front camera and individual cameras, uses the direction coordinator correctly and handles mirroring and preview.

### Steps

1. Run `npx skills add mirzaaghazadeh/iphone-duo-skills --skill iphone-duo-camera` (inferred, check the README)
2. Restart your agent session.
3. Ask the agent to review your AVFoundation capture setup against the skill.
4. Confirm the direction coordinator handler uses the direction map arrays for forward and backward descriptors.
5. Test capture on a physical iPhone Duo and check the preview and mirroring in each pose.

### Prompt to paste into your agent

```text
Using the iphone-duo-camera skill from mirzaaghazadeh/iphone-duo-skills, review <path-to-capture-code> for virtual front camera use, individual camera selection, direction coordinator handling and mirroring. Output the changes needed with reasons, and verify that the change handler is written against AVCaptureDeviceDirectionMap as the README describes.
```

### Caveat

The README notes its signatures were checked against Apple's API reference, so behavior on real hardware still needs testing on an actual iPhone Duo.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/make-camera-app-handle-both-front-cameras/

## How to review a screen design for foldable poses and fold avoidance with Iphone Duo Skills

Repo: [mirzaaghazadeh/iphone-duo-skills](https://github.com/mirzaaghazadeh/iphone-duo-skills) | Difficulty: Intermediate | Time: 15 minutes | Basis: From the README

Critique a mockup or screen for pose behavior, side controls, asymmetry and sheets without writing code.

**Who it is for:** A product designer or product manager who wants feedback on a screen before engineering starts, in any framework.

**The problem:** A layout that looks right on a flat screen can place controls or content across the fold or behave poorly in a different pose.

**The outcome:** A written design critique that covers poses, side controls, asymmetry, fold avoidance and sheets, with specific changes to try.

### Steps

1. Run `npx skills add mirzaaghazadeh/iphone-duo-skills --skill iphone-duo-design-review` (inferred, check the README)
2. Restart your agent session.
3. Give the agent the screen description, screenshots or mockup files.
4. Ask for a critique organized by pose, side controls, asymmetry, fold avoidance and sheets.
5. Take the top items back to the design file and mark which ones need an engineering check.

### Prompt to paste into your agent

```text
Using the iphone-duo-design-review skill from mirzaaghazadeh/iphone-duo-skills, critique the screen described in <path-to-design-notes-or-image> for how it behaves across iPhone Duo poses, with attention to side controls, asymmetry, fold avoidance and sheets. Output a prioritized list of issues with one suggested change each, and verify that the critique does not assume a specific framework.
```

### Caveat

The skill gives design guidance based on Apple's Designing for iPhone Duo page and Tech Talks, so check each suggestion against the current Human Interface Guidelines.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/review-screen-designs-for-foldable-poses/

## How to port a Flutter app layout to iPhone Duo with Iphone Duo Skills

Repo: [mirzaaghazadeh/iphone-duo-skills](https://github.com/mirzaaghazadeh/iphone-duo-skills) | Difficulty: Intermediate | Time: 30 minutes | Basis: From the README

Adapt a Flutter app using the layout reasoning and the bridge guidance in the Flutter skill.

**Who it is for:** A Flutter developer whose app needs to run well on iPhone Duo and who has learned that the fold data is not exposed in the usual place.

**The problem:** Flutter's MediaQuery.displayFeatures is documented as populated only on Android, so it returns an empty list on iPhone Duo. Developers may look for fold data there and get nothing.

**The outcome:** A plan that separates what works in Flutter today from what needs a platform channel to a native iOS layer.

### Steps

1. Run `npx skills add mirzaaghazadeh/iphone-duo-skills --skill iphone-duo-flutter` (inferred, check the README)
2. Run `npx skills add mirzaaghazadeh/iphone-duo-skills --skill iphone-duo-design-review` (inferred, check the README)
3. Ask the agent to read iphone-duo-flutter first, then review your screens with the design review skill.
4. Identify any fold-state needs and plan a bridge through platform channels.
5. Test your layout on a physical iPhone Duo.

### Prompt to paste into your agent

```text
Using the iphone-duo-flutter and iphone-duo-design-review skills from mirzaaghazadeh/iphone-duo-skills, review <path-to-flutter-project> for code that relies on MediaQuery.displayFeatures or other fold data. Output a list of what works now in Flutter and what needs a platform channel, and verify that no suggested fix depends on displayFeatures returning fold data on iOS.
```

### Caveat

The README says neither Flutter nor React Native supports iPhone Duo yet, so bridged features will need native iOS code and testing.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/port-flutter-app-to-iphone-duo/

## How to keep game touch controls clear of the fold with Iphone Duo Skills

Repo: [mirzaaghazadeh/iphone-duo-skills](https://github.com/mirzaaghazadeh/iphone-duo-skills) | Difficulty: Advanced | Time: 45 minutes | Basis: From the README

Check a game's screen filling, aspect ratio and on-screen controls against iPhone Duo poses.

**Who it is for:** A game developer using Unity, Unreal, Godot, SpriteKit or Metal who has on-screen touch controls and needs them usable on iPhone Duo.

**The problem:** Games sidestep most UI guidance but still need to resize, and the fold is a real hazard for touch controls placed across it.

**The outcome:** A list of changes to screen filling, letterboxing and touch control placement so controls sit clear of the fold in each pose.

### Steps

1. Run `npx skills add mirzaaghazadeh/iphone-duo-skills --skill iphone-duo-games` (inferred, check the README)
2. Restart your agent session.
3. Point the agent at your project's input and UI scene setup.
4. Ask for a check of screen fill, aspect ratio and letterboxing per pose.
5. Move any touch control that sits across the fold and test it on a physical device.

### Prompt to paste into your agent

```text
Using the iphone-duo-games skill from mirzaaghazadeh/iphone-duo-skills, review <path-to-game-project> for how the game fills the screen across poses, handles aspect ratio and letterboxing, and places on-screen touch controls. Output the changes needed, and verify that no touch control is placed across the fold in any listed pose.
```

### Caveat

The README does not give exact fold dimensions in this entry, so pick control positions using the device facts reference and test on hardware.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/mirzaaghazadeh-iphone-duo-skills/plan-game-touch-controls-clear-of-fold/
