Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions PasscodeLock/PasscodeLockPresenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ open class PasscodeLockPresenter {
public init(mainWindow window: UIWindow?, configuration: PasscodeLockConfigurationType, viewController: PasscodeLockViewController) {

mainWindow = window
mainWindow?.windowLevel = 1
passcodeConfiguration = configuration
passcodeLockVC = viewController
}
Expand All @@ -89,10 +88,9 @@ open class PasscodeLockPresenter {

isPasscodePresented = true

passcodeLockWindow.windowLevel = 2
passcodeLockWindow.windowLevel = UIWindowLevelStatusBar
passcodeLockWindow.isHidden = false

mainWindow?.windowLevel = 1
mainWindow?.endEditing(true)

let passcodeLockVC = PasscodeLockViewController(state: .enterPasscode, configuration: (config ?? passcodeConfiguration), stringsToShow: stringsToShow, tintColor: tintColor, font: font)
Expand All @@ -114,7 +112,6 @@ open class PasscodeLockPresenter {
open func dismissPasscodeLock(animated: Bool = true) {

isPasscodePresented = false
mainWindow?.windowLevel = 1
mainWindow?.makeKeyAndVisible()

if animated {
Expand Down