             if !PasscodePresenter.sharedInstance.isShowingPasscode() {
                 PasscodePresenter.sharedInstance.presentWithValidatePasscode()
             }
-        }.addDisposableTo(disposeBag)
+            }.addDisposableTo(disposeBag)
     }
     
     func isShowingPasscode() -> Bool {

    func presentTooManyTriesAlert() {
        
    }

    func dismiss() {
        passcodeLockWindow.hidden = true
        passcodeLockWindow.rootViewController = nil

import RxSwift
import RxCocoa

internal let privateSharedInstance = PasscodePresenter()

class PasscodePresenter: NSObject {
    
    private var presentedWindow: UIWindow?
    private var passcodeLockWindow: UIWindow!
    private var disposeBag: DisposeBag = DisposeBag()
    
    class var sharedInstance: PasscodePresenter {
        return privateSharedInstance
    }
    
    override init() {
        super.init()
        hookApplicationWillResignActive()
    }
    
