Fix issue of displying extension
This commit is contained in:
parent
228f06a886
commit
d28861448e
2 changed files with 5 additions and 5 deletions
|
|
@ -24,7 +24,11 @@ class PasscodeExtensionDisplay {
|
||||||
before?()
|
before?()
|
||||||
passcodeLockVC.successCallback = after
|
passcodeLockVC.successCallback = after
|
||||||
passcodeLockVC.modalPresentationStyle = .fullScreen
|
passcodeLockVC.modalPresentationStyle = .fullScreen
|
||||||
sender.parent?.present(passcodeLockVC, animated: false)
|
sender.parent?.present(passcodeLockVC, animated: false) {
|
||||||
|
after?()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
after?()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -47,10 +47,6 @@ class ExtensionViewController: UIViewController {
|
||||||
override func viewWillAppear(_ animated: Bool) {
|
override func viewWillAppear(_ animated: Bool) {
|
||||||
super.viewWillAppear(animated)
|
super.viewWillAppear(animated)
|
||||||
prepareCredentialList()
|
prepareCredentialList()
|
||||||
}
|
|
||||||
|
|
||||||
override func viewDidAppear(_ animated: Bool) {
|
|
||||||
super.viewDidAppear(animated)
|
|
||||||
passcodelock.presentPasscodeLockIfNeeded(self, after: { [unowned self] in
|
passcodelock.presentPasscodeLockIfNeeded(self, after: { [unowned self] in
|
||||||
self.view.isHidden = false
|
self.view.isHidden = false
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue