Fix passcode lock view rotation problem
This commit is contained in:
parent
4b5ea10b40
commit
fa78a7e0b7
1 changed files with 2 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue