Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
iOS 13.1.2: iOS ARSCNView orientation wrong when supportedInterfaceOrientations == .portrait
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
}
...