From fa78a7e0b7bad20add50daadc41a53d3873ad5a9 Mon Sep 17 00:00:00 2001 From: Yishi Lin Date: Sun, 16 Jul 2017 23:15:24 +0800 Subject: [PATCH] Fix passcode lock view rotation problem --- pass/AppDelegate.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pass/AppDelegate.swift b/pass/AppDelegate.swift index c08f282..23da43a 100644 --- a/pass/AppDelegate.swift +++ b/pass/AppDelegate.swift @@ -40,11 +40,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask { if let _ = window?.rootViewController as? PasscodeLockViewController { - // Force the PasscodeLockVC to be portrait because the rotation seems bugy in some cases - return .portrait - } else { - return .all + window?.frame = UIScreen.main.bounds } + return .all } func postSearchNotification() {