Adapting your app for iPhone Duo
iPhone Duo became the first folding iPhone providing us with two displays of different sizes and aspect ratios. This week, we will talk about adapting our apps to different screen sizes using simple techniques that Apple UI frameworks provide us.
Positioning SwiftUI views around the fold on iPhone Duo
In iOS 27.1, SwiftUI can report the reserved regions of a view: parts of its coordinate space taken up by hardware or system elements outside the view's control. Each ReservedRegion has a kind: division for an area that splits the available space, such as the fold on the inner display of iPhone Duo, and occlusion for an area covered by hardware, such as a camera.
Size classes inside ArrangementView
Let’s explore how SwiftUI’s ArrangementView handles size classes on the foldable iPhone Duo, revealing an apparent bug in iOS 27.1 that is fixed in iOS 27.2.
Get your app working on iPhone Duo
Duo is one model next to the rest of the iPhone line. The people who update your app next week are still holding a regular iPhone. The first release has one job: the app works in every pose they can put it in. A layout that uses the hinge on purpose waits until you can name the task that needs it.
iPhone Duo Changes SwiftUI Layouts: Here’s How to Adapt Your App
Make your SwiftUI app truly iPhone Duo aware. In this video, I continue the iPad-friendly app from the previous tutorial and adapt it for Apple’s foldable iPhone, including changing device poses, adaptive toolbars, the fold and hinge, and layouts that respond intelligently as the device opens and closes.
