Forced Orientation + iOS 26?

Hello, I have an app which is a full screen app.

Since updating xcode, the force-landscape and force-portrait modes are broken. I am looking for a way to have a full-screen app in landscape, or a full-screen app in portrait.

The previous process that I found, which worked was the following: setNeedsUpdateOfSupportedInterfaceOrientations() UIWindowScene.requestGeometryUpdate(.landscape)

Then returning the correct value on uiviewcontroller override var supportedInterfaceOrientations : UIInterfaceOrientationMask { return [.portrait, .portraitUpsideDown, .landscapeLeft, .landscapeRight] }

This is going to destroy 2 full years of development, the entire app hinges on being able to use portrait OR landscape mode. There are portrait scenes and landscape scenes. When you setup a scene, you can rotate the device. Once the scene is setup, it needs to be fixed into one orientation and run full-screen.

Please let me know best practices for this use case. I look to the monks, jedis, ninjas, and warriors to guide me through this swamp of sorrows. Thanks!

Thank you for sharing your insights on this topic. While I am not an expert in device orientation, I recommend referring to the provided tech note for a comprehensive explanation of the changes between full-screen and locked orientations. Specifically, I suggest examining the value of the ‘prefersInterfaceOrientationLocked’ property to determine its potential relevance to your needs.

TN3192: Migrating your iPad app from the deprecated UIRequiresFullScreen key | Apple Developer Documentation, scene-orientation-lock

Hope this help and after let me know if you have any questions.

Albert Pascual
  Worldwide Developer Relations.

I tried that and it has no effect. There's only 1 app running. I guess I can just letter-box the entire app in this scenario. Any way I can convince you to go back to full-screen apps? I guess I will have to find a way around it; app can ALWAYS rotate, this is a new stipulation.

Forced Orientation + iOS 26?
 
 
Q