Posts

Post not yet marked as solved
5 Replies
Hi. We are come across this bug. Managed to get around this by programmatically changing interface orientation. Not very good… class AppDelegate: UIResponder, UIApplicationDelegate {     var window: UIWindow?     var orientationMask: UIInterfaceOrientationMask = .allButUpsideDown     func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {         return orientationMask     }     func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {         UIDevice.current.setValue(NSNumber(value: UIInterfaceOrientation.landscapeLeft.rawValue), forKey: "orientation")         let deadlineTime = DispatchTime.now() + .seconds(1)         DispatchQueue.main.asyncAfter(deadline: deadlineTime) {             UIDevice.current.setValue(NSNumber(value: UIInterfaceOrientation.portrait.rawValue), forKey: "orientation")             self.orientationMask = .portrait         }         return true     } ...