# iPhone Duo Hinge, Displays and Cameras

> Use the hinge, the two displays, the two front cameras and multiple windows of iPhone Duo.

iPhone Duo Hinge, Displays and Cameras 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-hinge-displays-and-cameras
- Tags: mobile, swiftui, uikit, avfoundation, multi-window, ios, iphone-duo, foldable

## About this skill

iPhone Duo has a hinge, two displays and two front cameras. It is also the first iPhone that shows more than one window of an app. This skill helps your SwiftUI or UIKit app use these features and degrade correctly on other devices.

### What it does

- **Hinge:** angle and fold state with `onHingeChange` and `UIHingeInteraction`, for interactions and effects, not for layout.
- **Split View multitasking:** all apps take part, including the stacked video layout.
- **Multiple scenes:** handles `requestSceneSessionActivation` errors on the outer display and uses `UIWindowScene.ActivationAction`.
- **Scene accessories:** `sceneAccessory` and `CameraCaptureAccessory` for a preview, a countdown or a teleprompter on the outer display.
- **Cameras:** the virtual front camera, `AVCaptureDeviceDirectionCoordinator` and preview mirroring when the device opens or closes.
- **StandBy:** a widget, so the app appears in StandBy on the outer display.

### How it works

1. A read-only scan and an SDK check show what compiles with your Xcode.
2. The skill writes recommendations. Each one cites the Apple session it comes from.
3. You approve each change. The skill applies it and builds.

### Works with

SwiftUI and UIKit apps in Xcode. The hinge APIs, `CameraCaptureAccessory`, the direction coordinator and the physical front camera types need the iOS 27.1 SDK. `sceneAccessory` and `UIWindowScene.ActivationAction` work with earlier SDKs.

## Known limitations

The hinge and camera APIs do not compile with the iOS 27.0 SDK. The skill checks your SDK and lists those items as blocked. Hinge features need the iPhone Duo simulator or a device to test, and they must do nothing on other devices.

## 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 Hinge, Displays and Cameras 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

### How does this skill help me adapt my existing app for the dual-display iPhone Duo?

The skill uses an automated scan of your SwiftUI or UIKit codebase to identify where new iPhone Duo APIs—like hinge states and multi-window scenes—can be integrated without breaking backwards compatibility for older devices.

### Which version of the iOS SDK do I need to use these features?

The skill requires the iOS 27.1 SDK for advanced hardware features like the hinge and front camera coordination, though basic scene accessory features will work with earlier versions.

### Can this skill help me implement support for running multiple app windows simultaneously?

Yes, the skill is designed to handle Split View multitasking and stacked video layouts, ensuring your app behaves correctly when running alongside other windows or in folded configurations.

### Does the skill automatically change my code, or can I review the recommendations first?

The skill provides a recommendation report citing official Apple documentation for each change; you have full control to approve or reject specific modifications before they are applied to your Xcode project.

### How does the skill handle camera previews when the device is folded or unfolded?

It leverages the new `CameraCaptureAccessory` and `AVCaptureDeviceDirectionCoordinator` to manage previews, countdowns, and mirroring across both displays, including the unique outer display teleprompter mode.

---

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.
