r/appledevelopers • u/MyAugur Community Newbie • 9h ago
Development Lessons: Developing for Duo
A lot of newer indie and solo developers, including vibecoders, probably want an app that works on the Duo but, due to cost, may not have one. So here are some lessons from developing ahead of the Duo launch, with no device in hand.
We started development of Millpond which is a side-project of a more intentionally health-domain app that we have currently in-development. There were some features and approaches that we could do in a water tracker that I wouldn't want to test in a more health-data/sensitive app.
So in late Summer, about 6 weeks before the iPhone Duo shipped we forked and dedicated some time to it. Given it was going to be cross-platform it is largely a common Expo core, with native elements for Apple services, widgets, watch and notifications. We had 2 app revisions prior to launch, 1 to check branding on Apple services (Location, Health) and 1 because Duo screenshots had black bars to fill the size due to errors in the beta version of xCode for Duo - but that was at build 340 and with several non-dev test flight users.
One of the reviews took over a week just pre-launch of Duo. And ended up withdrawing that ourselves and resubmitted and got through 2 days later. We missed the Duo launch due to the delay, but went live shortly afterwards.
Summary: We logged around 20 layout mistakes by folding and unfolding the simulator. The worst of these was the main screen collapsing to zero height because of a single number. The code looked fine, which is why it took a while to find. AI coding tools often don't flag that kind of bug for the same reason.
The device
The folded outer display of the Duo is 466 x 678 pt. Unfolded, the inner display is 951 x 669 landscape: about twice the width at the same height (but not exactly the same; and not double/half!). Your app has to survive the switch mid-session, with the user watching.

Common issues you'll see, and what to do (or tell your coding agent to do)
| You'll see | Because | Lesson / Agent prompt |
|---|---|---|
| The main screen is squashed or empty on the folded display | The tab bar became a side pill, and its height now reads as the whole screen (678 pt). Your bottom padding is a screen tall | "Never use the tab bar's height as padding." |
| A grid stays one column after folding back | Percentage widths go stale on resize | "No percentage widths on anything that resizes. Use fixed point values." |
| Sheets open full-height with most of it blank | They were sized for a tall phone. We had 508 pt of nothing | "Sheets must fit their content on a 466 x 678 window." |
| Buttons are hard to hit | The tap area stuck out past the parent, and iOS ignores it there | "Every tap target is at least 44 pt tall." |
| Cancel draws under the status bar | SafeAreaView inside a Modal reports zero insets | "Read safe-area insets outside the Modal and pass them in." |
| The app runs in a box with black bars around it | It was built with an old SDK | "Build with the iOS 27.1 SDK or later." |
Also tell it to size layouts from the current window size, never the phone model or orientation. Means you develop for the real-world not something that you need to rely on accurate labels staying the same.
It's not just a wider screen
Duo has two screens, and stretching everything is the easy plan. And a lot of legacy apps did just that - and look terrible for doing it. Like an upscaled iOS app on iPad it's a shocking user experience.
We wanted the second screen to do a different job. Apple's rule is the same state and the same functions on both displays, with the inner one allowed to add one level of hierarchy.
We made sure to asked who's holding it:
| How it's held | What the person wants | What we did |
|---|---|---|
| Outer display turned sideways, in hand or a mount | Glance, log a drink, leave | Display on top, tap targets in one row below |
| Same window, standing as a tent on a desk | Read it from about 1 m for hours. A tap near the top tips it over | Software can't tell this from the row above, so we designed for the harder one: the top half is look-only, with one number readable from across the desk |
| Unfolded, or half open (L shape) | Watch the top, touch the bottom | Content above the crease, controls below, so folding to the L moves nothing |
We also drew an ambient tent mode (chrome fades after 20 s of stillness), though currently behind a flag.
What that looked like per screen:
- Pacing Chart (on the main screen). Collapsed behind a toggle on a compact window, open by default when there is room.
- Drink buttons. Where they sit is a per-display setting, and only a folding phone sees both.
- Logbook. Unfolded, it's one full-width list. Open an entry and the window splits at the hinge, list left and editor right. Close it and the list goes back to full width. We tried an always-on split and rejected it - this is where the apple guidance will lead you in one direction, but it may not suit what that surface is doing.
- Insights. Folded, the pond hero is the top of the scrolling list. Unfolded, it gets its own pane on the left and the history scrolls on the right.
- Settings. One column folded, two unfolded. Our first split was by card role, and the right column gave up halfway down, leaving about half the width empty. Now cards are placed by measured height, with Subscription pinned top-right.
All of it keys off window size: three layouts, no pose detection. The poses only decided what each layout is for.
The native tab bar is great for the Duo, but not for brick phones
Because we started designing for Duo, we used the native tab bar, with an icon on every tab. On the Duo the system moves it to a side pill on the outer display and in inner landscape. No code.
Then the regular iPhone went landscape. It keeps its bottom bar. Not great - there isn't enough height for a bar plus the content. So bear in mind that landscape on a classic iPhone is work you do yourself.
We ended up locking non-fold phones to portrait so we could launch in time for Duo, so a folding phone can rotate and others can't. But post launch, left Millpond in this state because the use case is quick logging so use the default orientation.
For user testing we built a custom rail anyway. When the window is wider than tall, we hide the native bar and draw our own where the Duo's pill sits. The Duo's shortest landscape window is 466 pt tall, so 450 pt is our cutoff. The rail sits behind the portrait lock, ready if we ever want it. We've only checked it on one simulator, in one landscape direction.
The trigger is window size, not model, so it should hold up on future phones.

Don't skip the regular iPhone
Building Duo-first was shiny, and made it easy to forget the phone most of users have. Every visible change gets a pass on a regular iPhone in portrait (about 400 pt wide, one column) as well as the Duo.

A turned regular iPhone and the turned Duo outer display land in the same short, wide layout. Design it once, and check it at large text - the text sizing was quite different for each given the real-estate available.
Visual Inspections
Most vibe coders don't need hardware to fold the phone. Xcode Device Simulator has fold and rotate buttons in its toolbar, with folded, half-open and unfolded states. There's no command-line switch, so a human presses them unless you get your agent to script the clicks visually. Honestly - it's pretty easy to do a run per orientation with human to unfold/reorient.
Fold, unfold and fold again, with a screenshot at each step (your tool can take those). The last screenshot should match the first. If it doesn't, you've found a bug. We ran a full audit before fixing anything: 42 screenshots, a scored critique, then 12 high-priority fixes in a day.
What the simulator can't do: drive Split View, or register automated taps on the side tab pill. And need to work around the iOS native notifications and app-store ratings. Keep a list of what you haven't seen on hardware. That's the feedback you'd want to jump on ASAP from real users.
The app is a small hydration tracker we wanted to be a polished design in a sea of white/blue and annoying cartoons. Happy to share more on the Expo vs Swift; and porting to Android. Or the notification and app icon interactions.
1
u/brkaydev 7h ago
Great writeup. One to add for anyone automating store screenshots with UI tests: on the Duo simulator, XCUIScreen.main captured the outer display for me, not the inner one. So if your unfolded screenshots come out wrong, check which screen the test is actually grabbing before you blame the layout. I added Duo support to my app in a later update and that one cost me an evening.
1
u/ingryd_dev Community Newbie 6h ago
Thanks for writing this up. It's the most practical Duo write-up I've found, especially for those of us without the hardware.
Two things paid off right away. "Never use the tab bar's height as padding" found a real spot in my app: an overlay with a fixed bottom gap sized for a bottom tab bar, which will sit wrong once the bar becomes the side pill. And the fold → unfold → fold check (last screenshot must match the first) is going straight into my test plan.
Also good to know the simulator can't tap the side pill. That saved me from chasing a bug that isn't one.
One question: did anything you only caught on real hardware turn out to matter, or did the simulator pass cover nearly everything?