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 {
|
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
|
||||||
if let _ = window?.rootViewController as? PasscodeLockViewController {
|
if let _ = window?.rootViewController as? PasscodeLockViewController {
|
||||||
// Force the PasscodeLockVC to be portrait because the rotation seems bugy in some cases
|
window?.frame = UIScreen.main.bounds
|
||||||
return .portrait
|
|
||||||
} else {
|
|
||||||
return .all
|
|
||||||
}
|
}
|
||||||
|
return .all
|
||||||
}
|
}
|
||||||
|
|
||||||
func postSearchNotification() {
|
func postSearchNotification() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue