What the simulator didn't show me about iPhone Duo
NewsNinja was ready for iPhone Duo on day one, built entirely in the simulator. Then I got the real device. What broke, the APIs that fixed it, and what I'd tell other iOS developers to do first.

When iPhone Duo launched, NewsNinja was ready from day one. Like every other developer, I’d built that support in the only place I could: the simulator.
Then I got a real iPhone Duo, and within a day I had a list of problems the simulator never showed me. Some I found myself, and some came from customers, one of which needed an App Store update just to fix it. I still find small ones almost every day.
This post is what I learned: the APIs that do the heavy lifting in SwiftUI, the parts that only show up on a real device, and the one question I still haven’t fully answered.
Most of the work was already done
NewsNinja runs on iPad and Mac, so most screens already adapted to their width with horizontalSizeClass. That turned out to be the biggest head start. The closed iPhone Duo behaves like a normal iPhone, and the open inner display is regular width, so most screens just picked their iPad layout.
There’s one useful quirk: an open iPhone Duo is the only iPhone that’s regular in both size classes. That’s an easy way to tell “open foldable phone” apart from “iPad”:
/// An open foldable iPhone is the only phone that is regular in both size classes.
private var isOpenFoldablePhone: Bool {
UIDevice.current.userInterfaceIdiom == .phone
&& horizontalSizeClass == .regular
&& verticalSizeClass == .regular
}
But “it works like an iPad” is where the trouble started.
The inner display is not an iPad
I assumed the inner display would behave like a small iPad. On iPad, NewsNinja’s NavigationSplitView can show the sidebar, the feed list and the article side by side. On the inner display, I could never get three columns side by side. Maybe there’s a way and I didn’t find it, but I stopped fighting it and designed for two:
- The sidebar stays hidden until you tap the sidebar button.
- Held upright, the feed list floats over the article, and opening an article clears it away, so the article gets the whole screen.
- A full-screen video has to survive opening and closing the phone, which needed its own fix (more on that below).
The sidebar is the part I still haven’t solved completely. Should a screen extend under the sidebar or not? On some screens the answer is obvious. On others it really isn’t, and it seems I’m not alone: even Apple’s own apps, like Safari, don’t seem to have settled on one answer. It ends up being a decision you make screen by screen.
Keeping content out of the fold
iOS 27.1 gives you the fold as a reserved region. In SwiftUI, you read it from a GeometryProxy:
@available(iOS 27.1, *)
extension GeometryProxy {
/// The distance from the leading edge to the fold while the phone is folded like a book.
var bookFoldLeadingWidth: CGFloat? {
let fold = reservedRegions(kind: .division)
.first { $0.isActive && $0.frame.height >= $0.frame.width }
return fold.map { $0.frame.minX.rounded() }
}
}
Two details that took me a while:
isActivematters. Open flat, the fold is just a crease, and the region is inactive. Only when the phone is partly folded, in book pose, is it active. If you want the inactive one too, passoptions: .includeInactive.- The frame already includes clearance. You don’t need to add your own margin for interactive content; the system already did.
NewsNinja’s Today dashboard uses this in two ways. Open flat, it shows two equal columns with a normal gap. In book pose, it moves the columns so each one sits on its own side of the fold, and nothing spans both:
// Open flat, the fold is just a crease: the columns keep the normal gap.
// Only in book pose do they sit on either side of the fold.
if let fold, fold.isActive {
let first = fold.minX - foldMargin - leadingInset
let spacing = (fold.maxX - fold.minX) + 2 * foldMargin
let second = available - first - spacing
// ...two columns, one per page
}

The closed display has its own reserved area: a side bar that you get as an .occlusion region. To handle both at once, I wrote one helper that returns the largest rectangle clear of every active region, and most screens just lay out inside it:
@available(iOS 27.1, *)
extension GeometryProxy {
/// The largest part of the proxy clear of the fold and occluded areas.
var usableContentRegion: CGRect {
let regions = reservedRegions(kind: .division) + reservedRegions(kind: .occlusion)
var candidates = [CGRect(origin: .zero, size: size)]
for region in regions where region.isActive {
// Split every candidate around the region: left, right, above, below.
candidates = candidates.flatMap { $0.splitting(around: region.frame) }
}
return candidates.max { $0.area < $1.area } ?? CGRect(origin: .zero, size: size)
}
}
Book pose: one side to read, one side to tap
The bug I didn’t expect: in book pose, some screens put everything on one side of the fold. Or worse, everything at the very top or the very bottom of the screen, with the fold cutting through the middle.
The fix was a small container I now use for onboarding, the subscription screen and a few others. In book pose, it puts the content on one side and the buttons on the other. Otherwise it shows the normal layout:
/// In book pose, shows `reading` on one side of the fold and `controls` on the other.
/// Otherwise shows `regular`.
struct BookPoseSplit<Reading: View, Controls: View, Regular: View>: View {
@ViewBuilder var reading: () -> Reading
@ViewBuilder var controls: () -> Controls
@ViewBuilder var regular: () -> Regular
var body: some View {
GeometryReader { proxy in
if let sides = proxy.bookPoseSides {
ZStack(alignment: .topLeading) {
reading()
.frame(width: sides.reading.width, height: sides.reading.height)
.offset(x: sides.reading.minX, y: sides.reading.minY)
ScrollView { controls() }
.frame(width: sides.controls.width, height: sides.controls.height)
.offset(x: sides.controls.minX, y: sides.controls.minY)
}
} else {
regular()
}
}
}
}
For example, on the subscription screen, what NewsNinja+ includes goes on one side, and the plans and the Buy button on the other. It feels natural, almost like a book.
The small outer display
The closed display is narrow, and onboarding was designed for a normal iPhone. Important details, like the buttons to continue, ended up below the fold of the scroll view, and you had to scroll to find them. I reworked onboarding and a few other screens so the important parts are visible without scrolling on the smallest screen.
Opening and closing is the real test
This is the thing the simulator can’t teach you. On a real device, you open and close the phone constantly, in the middle of things. You’re reading in the closed display, you open it to see more, and you expect to carry on exactly where you were. In the simulator, I never really tested that, because it’s not something you naturally do with a menu command.
So the bugs were all about transitions:
- Opening the phone while the closed display showed the sidebar left the feed list empty, because regular width needs a selection.
- Folding into book pose made the split view show every column again.
- YouTube was the big one. Customers wrote to tell me videos weren’t working properly when they opened or closed the phone, especially in full screen, and I had to ship an update just for that. Opening the phone during a full-screen video brings the split view columns back while the binding still says
.detailOnly, so setting it again does nothing.
For the fold changes, iOS 27.1 has onHingeChange. I only react when the hinge’s status changes (closed, partly open, fully open), not on every degree of the angle:
@available(iOS 27.1, *)
extension View {
/// Runs `action` when the phone moves between closed, partly open and fully open.
func onFoldStatusChange(_ action: @escaping () -> Void) -> some View {
onHingeChange { old, new in
guard let hinge = new.hinge, hinge.status != old.hinge?.status else { return }
action()
}
}
}
And the YouTube fix, in short: change the column visibility to something else first, then set it back once the new size has settled.
.onChange(of: [horizontalSizeClass, verticalSizeClass]) { _, _ in
// Unfolding during full-screen video brings the columns back while the
// binding still reads .detailOnly, so assigning it again would be a no-op.
guard fullscreenVideo.isActive else { return }
columnVisibility = .doubleColumn
Task { @MainActor in
if fullscreenVideo.isActive { columnVisibility = .detailOnly }
}
}
So many ways to hold it
Closed. Open flat. Folded like a book. Tent mode. Each of them in portrait and in landscape, and more than one landscape. Checking every screen in every pose is honestly a bit overwhelming, and it’s the main reason I keep finding small issues.
Some of them only exist on the device. Opening the phone, I sometimes found the UI upside down, and sometimes it then stopped rotating altogether.
A fun one: I’d been using Claude to drive the simulator and check layouts. It never noticed the upside-down UI, because it took screenshots with the simulator’s built-in screenshot, which always comes out the right way up. In my hand, the screen was upside down.
The simulator is all you have, until it isn’t
To be fair to the simulator, it’s what made day-one support possible at all. But it’s also heavy and a bit buggy. I used simslim to make it lighter and faster, and it still sometimes failed to take a screenshot or record a video.
What I’d tell other developers
- Start from your iPad layout. If your app already adapts with size classes, you’re most of the way there.
- Don’t assume the inner display is an iPad. Check how your split view actually behaves, and design for the columns you really get.
- Use reserved regions, not hard-coded numbers.
.divisionfor the fold,.occlusionfor the closed display’s side bar, and rememberisActive. - Give book pose its own layout for screens with content and buttons: one side to read, one side to tap.
- Check the small outer display for anything important hidden below a scroll.
- Test transitions, not just poses. Open and close the phone in the middle of everything: a video, a sheet, onboarding.
- Get a real device as soon as you can. This is the main one. The simulator shows you layouts; only the device shows you how people actually use it.
Even with all of this, using NewsNinja on iPhone Duo is a real pleasure. Open, you can see so much more, like an iPad that fits in your pocket. That’s why I keep fixing the small things.
If you’re adapting an app for iPhone Duo, I’d love to hear what surprised you. And if you use NewsNinja on one and find something that looks wrong, please tell me. Most of the fixes above started that way.