UI resizing / realigning issue in iOS 26 device building in xcode 26

In our app we launch landscape only player view controller from portrait only view controller. This is done using present(playerViewController, animated:true) and it is dismissed using dismiss() api. This is working fine till iOS 18 but broken in iOS 26. Now when presenting the presented viewcontrollers UI is realigning / resizing after the view is visible and while dismissing the presenting view controller is realigning after the view is visible. Anyone else seeing it or how to fix this?

Answered by DTS Engineer in 860120022

I think you will need to update to iOS 26 and have this on UISceneDelegate:

func windowScene( _ windowScene: UIWindowScene, didUpdateEffectiveGeometry previousGeometry: UIWindowScene.Geometry) {

It completely messes up my app, which was a full-screen app with fixed orientation. I will post a repo in a few days with a possible solution - which, in my case, will be to letter-box the landscape-only or portrait-only content. Remove all animations when transitioning screen, assume the screen can change to any size at any time.

Hi Emmanuel, Thank you for your response. I have reviewed the section you pointed out and did some changes. 1.Overriden prefersInterfaceOrientationLocked to return true 2. Implemented didUpdateEffectiveGeometry callback to force the layout

After this I am seeing two issues After the presentation and dismiss UI is flickering. Looks like there is some animation happening but not sure what it is. This happens only on device and not observed in simulator. In landscape the safearea position is coming same as portrait.

I have uploaded sample project here https://limewire.com/d/n3ioq#sc6PR1GkiG. Can you please have a look and help in fixing this?

Steps to reproduce Build and run app in xcode 26 and iOS 26 device Select any row and observe the detail view presentation Select Back button and observe the presented view controller

Thanks Harsha

UI resizing / realigning issue in iOS 26 device building in xcode 26
 
 
Q