As iPhone Duo was released recently I finally wanted to see how much of the UI adaptation iOS 27.1 handles on its own, and where an app needs to be adapted by hands. As a test app I used V-Modal's Framebase example, the same SwiftUI app I used earlier to try their SDK. It was written before the Duo existed, so it's a fair starting point. Everything below is from the iPhone Duo simulator in Xcode 27.2.
So as I found, iOS adapts without any code next things:
- Navigation bar items move into a vertical bar on the side. In Framebase this happened on both the small outer screen and the large inner one.
- In the half-folded pose, the playback sheet landed on one half of the screen by itself. According to Apple, alerts and menus avoid the fold the same way.
- Framebase sizes its layout from the container, not from device type or orientation. That's Apple's main advice for the Duo, and the app built and ran without changes.
What the app gives the system:
Apple's guidance is that items in the vertical bar should have both an icon and a title, so the system has what it needs to show them on the side. In SwiftUI that usually means a Label:
} label: { Label("More", systemImage: "ellipsis") }
Custom views don't move into the vertical bar. In Framebase, the logo with the app name stayed horizontal at the top, as Apple describes.
Reading the fold with reservedRegions:
The most interesting new API for me is GeometryProxy.reservedRegions(kind:) in SwiftUI, available from iOS 27.1. It tells you which parts of the screen to keep clear: .division for the fold and .occlusion for things like the camera. Each region has a frame and an isActive flag, so the app knows when the device is actually folded:
private func foldGap(in geometry: GeometryProxy, inset: CGFloat) -> ClosedRange<CGFloat>? {
guard #available(iOS 27.1, *),
let fold = geometry.reservedRegions(kind: .division).first(where: \.isActive)
else { return nil }
return (fold.frame.minX - inset)...(fold.frame.maxX - inset)
}
On the simulator the fold region was 40 points wide, from x 455 to 495, in the middle of the screen. Apple suggests an even number of columns so content divides cleanly, so I switched Framebase's search results from three columns to four. That wasn't quite enough on its own. The content area on that screen was 867 points wide out of 951 and wasn't centered on the fold, so the third column still crossed it. Reading the region itself solved it. I split the results into two grids, one on each side, with a gap the width of the fold:
let side = min(fold.lowerBound, width - fold.upperBound) - 7
let pair = [GridItem(.flexible(), spacing: 14), GridItem(.flexible())]
let left = matches.enumerated().filter { $0.offset % 4 < 2 }.map(\.element)
let right = matches.enumerated().filter { $0.offset % 4 >= 2 }.map(\.element)
HStack(alignment: .top, spacing: 0) {
Color.clear.frame(width: fold.lowerBound - 7 - side, height: 1)
LazyVGrid(columns: pair, spacing: 14) { ForEach(left) { tile($0) } }
.frame(width: side)
Color.clear.frame(width: fold.upperBound - fold.lowerBound + 14, height: 1)
LazyVGrid(columns: pair, spacing: 14) { ForEach(right) { tile($0) } }
.frame(width: side)
}
Both halves have the same width, so the tiles are the same size, and the reading order stays left to right, row by row. When the screen is flat, there's no active region and the regular grid comes back. One thing I noticed next to the fold: Framebase's thumbnails use scaledToFill, and each image came out a few points wider than its cell. In a normal grid that's hard to spot. Next to the fold it shows, so I clipped each tile to its cell.
About the simulator: I was curious how Apple would recreate a folding phone in software, and I liked the result. There are handy controls for witching between poses. It doesn't feel as smooth as a real device, but it's fine for testing. I'm glad that, as usual, Apple gives developers good enough tools to adapt their apps for a new device before they have one in their hands. In the past I used to nag about bugs in them, but to be fair they're still the best across iOS simulators. /s
So, all the results here come from the sim. The red stripe in the last screenshot is a debug overlay drawn fromreservedRegions to mark the fold.
What's next:
Framebase turned out to be an easy case. My guess is that apps already built the way SwiftUI and Liquid Glass expect will work well out of the box, or at least decently. Apps with heavy custom UI are where the interesting problems will be.
I'll see what of the apps I could use for it, also would appreciate any suggestions if you guys know any interesting one for this kind of adaptation. And also ArrangementView is upcoming, which Apple added for placing two views side by side on the Duo.