I’m trying to lock the orientation on iOS 16, to either landscape or portrait, at different times in my app.
So change the orientation on iOS 16 by using new method requestGeometryUpdateWithPreferences works fine, it changes the orientation correctly.
But supportedInterfaceOrientationsForWindow seems broken the flow in iOS 16. It does not lock the orientation there. It should ask allowed orientation before changing the orienation but now it does not work as expected nor according the decumentation. It changes the orienation and then asks supportedInterfaceOrientationsForWindow, that is wrong according to documentation. It was working fine on less than iOS 16.
I am using XCode Version 14.0 and iOS 16.0