# Make your app work on iPhone Duo

> Ask your Agents for layouts that work with iPhone Duo closed and open, then fold and unfold the iPhone Duo in Preview to check them.

Source: https://air.build/docs/build/make-your-app-work-on-iphone-duo/

> [!NOTE]
> **On iPhone Duo**
>
> This page is about your own app on iPhone Duo. To check it, you need an iPhone Duo in Preview's device menu. For AirBuild itself on iPhone Duo, see [Use AirBuild on iPhone Duo](https://air.build/docs/get-started/use-airbuild-on-iphone-duo/).

iPhone Duo is an iPhone that folds. Closed, people use its cover screen, like any iPhone. Open, they use the large inner screen, and they can stop anywhere in between. Because iPhone Duo is an iPhone, an iPhone app opens on it. Whether the app makes good use of the inner screen depends on its layout, and that's what you ask your Agents for.

## Ask for a layout

In the project's chat, say what the app should do closed and what it should do open, for example:

```text
Make the app work on iPhone Duo. Closed, keep the iPhone layout. Open, show the list on the left and the details on the right.
```

It's also worth asking the Agents to keep people's place when they open or close the phone: the same screen, the same spot in a list, and any text they were typing.

## Open the iPhone Duo in Preview

1. Open Preview for the project. See [Run your app in Preview](https://air.build/docs/build/preview-your-app/).
2. Open the device menu and choose **iPhone Duo**.

Preview draws the iPhone Duo as a device you can fold, with a handle beside the free edge of its cover half. Both screens show what the device shows. Tap or click a screen to use the app, as on any device.

## Fold and unfold

Choose a posture:

**iPhone**

Tap **⋯** (**More**), then **Posture**, and choose one.

**iPad**

Tap the **Posture** button in the bar under the device. If it isn't there, tap **⋯** (**More**), then **Posture**.

**Mac**

Click the **Posture** button in Preview's bar, between **Enter Full Screen** and **⋯**. Hold the pointer over it to see the posture the device is in, for example "Posture: Unfolded".

| Posture | How the device is held |
| --- | --- |
| **Folded** | Closed, on its cover screen, like a phone. |
| **Half Open** | Half open, the way you hold a book. |
| **Unfolded** | Open flat, on its inner screen. |
| **Laptop** | Standing on a table: one half lies flat and the cover half stands up. |
| **Tent** | Standing on its two free edges, with the cover screen facing out. |

A check marks the posture the device is in. While the device is between postures, none is checked.

To fold by hand, drag the handle. Tap it (on the Mac, click it) to fold or unfold all the way. If you let go halfway, the device keeps moving the way you were moving it, or settles at the nearest stop if you held still. In **Laptop** and **Tent** there's no handle.

**Rotate**, in the **⋯** menu, turns the device. A device standing in **Laptop** or **Tent** lies flat again when you turn it. With VoiceOver, the device has a **Fold** or **Unfold** action.

Folding moves the device itself, not only your view of it. An Agent working on the device sees your fold, and when an Agent folds it, you see it fold in Preview.

## What to check

- **Folded:** the app looks and works as it does on any iPhone.
- **Unfolded:** the layout uses the inner screen instead of a stretched phone screen.
- **While you fold and unfold:** you stay on the same screen and nothing you typed is lost.
- **Half Open**, **Laptop** and **Tent:** what the app shows with the device at an angle.

To show an Agent what's wrong, use **Screenshot** or **Draw** in Preview. On iPhone Duo, a Preview screenshot is a picture of the device as you see it, fold and all. Then ask for the fix in the chat.

## Have the Agent check for you

```text
Fold and unfold the iPhone Duo on each main screen and send me pictures.
```

An Agent can fold the device closed, half open, open, or to any angle in between. It can also send a picture of the whole device as it stands, drawn in 3D; a plain screenshot shows one screen only. A screenshot of the open inner screen can come out turned on its side: ask for it upright.

## On the App Store

On the Mac, the store page's **App Store Preview** can show your page on **iPhone Duo, Closed** and **iPhone Duo, Open**. See [Prepare your App Store page](https://air.build/docs/app-store/prepare-your-store-page/).

If App Store Connect has an iPhone Duo screenshot size for your app, its screenshots row in **Store Page** is named **iPhone Duo**. See [Make App Store screenshots](https://air.build/docs/app-store/make-store-screenshots/).

## Questions

**There's no iPhone Duo in the device menu.**

In a cloud Team, ask an Agent in the project's chat to start one. In a Team that runs on your Mac, the Preview devices come from Xcode on that Mac. On that Mac, choose **Add Preview…** in the device menu, and pick iPhone Duo under **Device Model** if Xcode offers it for the iOS version you chose. See [Type, rotate and add devices in Preview](https://air.build/docs/build/use-preview-tools/#add-a-device-mac).

**Can I try the app on a real iPhone Duo?**

Yes, install it as on any iPhone. See [Install your app on your iPhone](https://air.build/docs/build/install-on-your-iphone/).

**AirBuild itself looks different on my iPhone Duo.**

That's AirBuild's own layout, not your app's. See [Use AirBuild on iPhone Duo](https://air.build/docs/get-started/use-airbuild-on-iphone-duo/).
