 import RxSwift
 import RxCocoa
 
-class PasscodePresenter {
+internal let privateSharedInstance = PasscodePresenter()
+
+class PasscodePresenter: NSObject {
     
     private var presentedWindow: UIWindow?
     private var passcodeLockWindow: UIWindow!
     private var disposeBag: DisposeBag = DisposeBag()
-    static let sharedInstance = PasscodePresenter()
     
-    init() {
+    class var sharedInstance: PasscodePresenter {
+        return privateSharedInstance
+    }
+    
+    override init() {
+        super.init()
         hookApplicationWillResignActive()
     }
     

    func presentTooManyTriesAlert() {
        
    }

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

        return imageView
    }
}
