Force view controller orientation is not working in iOS 16 beta.
I tried preferredInterfaceOrientationForPresentation and requestGeometryUpdate APIs.
In older iOS versions following code snippet given below working fine.
UIDevice.current.setValue(UIInterfaceOrientation.landscapeLeft.rawValue, forKey: "orientation")
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: