Xcode – iOS16+ Present UIViewController in landscape only for single screen not working [Swift 5.7]
Before iOS 16 presenting a single screen in landscape is fine for portrait application. The working code is as below. Remark: Whole application is in Portrait mode only. override public var shouldAutorotate: Bool { return false } override public var…