Background We are currently building our app with Xcode 26 and the iOS 26 SDK. We want to verify the runtime behavior on iPhone Duo. We have three questions:
-
We haven't adopted SceneDelegate lifecycle management yet. We create the window using init(frame:), with the frame value taken from UIScreen.main.bounds. Will this implementation cause any issues on iPhone Duo?
-
For all non-Auto Layout layouts, we fetch view width by reading UIScreen.main.bounds. Do we need to rewrite all these code points? Will this lead to layout exceptions when the device switches between folded and unfolded states?
-
We observed the system handles fold/unfold compatibility, but black bars appear in both states. Can our app keep consistent view dimensions in both modes? Will viewWillTransitionToSize:withTransitionCoordinator: fire to trigger re-layout when switching between folded and unfolded states?
You cannot build an app that takes advantage of the features of iPhone Duo while building with Xcode 26 and the Xcode 26 SDK. As such your first step should be to update your application to adopt Scene Lifecycle.
Additionally you will need to stop relying upon UIScreen.main for layout decisions. All manual layout should be done inside an override of UIView.layoutSubviews() or UIViewController.viewWill/didLayoutSubviews() and made with respect to the view's bounds.
You will get the opportunity to re-layout during fold & unfold. For manually laid out views the best place to do this work is during a layoutSubviews method as mentioned above. Using Auto Layout or the new layout containers introduced for iPhone Duo can make this much easier.
Fundamentally, our recommendations are to follow best practices as outlined in WWDC26 and earlier presentations. The videos released earlier this month along side the iPhone Duo announcement can also help you greatly in adapting your application.
Good luck with your app!