@@ -18,7 +18,6 @@ public class PasscodeLockPresenter {
1818
1919 window. windowLevel = 0
2020 window. makeKeyAndVisible ( )
21- window. rootViewController = UIViewController ( )
2221
2322 return window
2423 } ( )
@@ -29,7 +28,7 @@ public class PasscodeLockPresenter {
2928 public init ( mainWindow window: UIWindow ? , configuration: PasscodeLockConfigurationType ) {
3029
3130 mainWindow = window
32- mainWindow? . windowLevel = 1
31+ mainWindow? . windowLevel = UIWindowLevelNormal
3332 passcodeConfiguration = configuration
3433 }
3534
@@ -39,7 +38,7 @@ public class PasscodeLockPresenter {
3938 guard !isPasscodePresented else { return }
4039
4140 isPasscodePresented = true
42- passcodeLockWindow. windowLevel = 2
41+ passcodeLockWindow. windowLevel = UIWindowLevelAlert
4342
4443 let passcodeLockVC = PasscodeLockViewController ( state: . EnterPasscode, configuration: passcodeConfiguration)
4544
@@ -48,7 +47,7 @@ public class PasscodeLockPresenter {
4847 self ? . dismissPasscodeLock ( )
4948 }
5049
51- passcodeLockWindow. rootViewController? . presentViewController ( passcodeLockVC , animated : false , completion : nil )
50+ passcodeLockWindow. rootViewController = passcodeLockVC
5251 }
5352
5453 private func dismissPasscodeLock( ) {
@@ -57,7 +56,7 @@ public class PasscodeLockPresenter {
5756
5857 passcodeLockWindow. windowLevel = 0
5958
60- mainWindow? . windowLevel = 1
59+ mainWindow? . windowLevel = UIWindowLevelNormal
6160 mainWindow? . makeKeyAndVisible ( )
6261 }
6362}
0 commit comments