diff --git a/SmileLock-Example/SmileLock-Example/BlurPasswordLoginViewController.swift b/SmileLock-Example/SmileLock-Example/BlurPasswordLoginViewController.swift index 17fc580..b4b15bc 100644 --- a/SmileLock-Example/SmileLock-Example/BlurPasswordLoginViewController.swift +++ b/SmileLock-Example/SmileLock-Example/BlurPasswordLoginViewController.swift @@ -41,4 +41,11 @@ class BlurPasswordLoginViewController: UIViewController { // inputView.labelFont = UIFont(name: "Chalkduster", size: 29) // } } + +// override func viewDidAppear(_ animated: Bool) { +// super.viewDidAppear(animated) +// +// // manually initiate biometric authentication +// self.passwordUIValidation.view.touchAuthentication() +// } } diff --git a/SmileLock.podspec b/SmileLock.podspec index 8f4f7a9..632f7e2 100644 --- a/SmileLock.podspec +++ b/SmileLock.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SmileLock" - s.version = "3.0.4" + s.version = "3.0.5" s.summary = "A library for make a beautiful Passcode Lock View." s.description = <<-DESC 1. Create a beautiful passcode lock view simply. diff --git a/SmileLock/Classes/PasswordContainerView.swift b/SmileLock/Classes/PasswordContainerView.swift index 0264496..68e8dfe 100644 --- a/SmileLock/Classes/PasswordContainerView.swift +++ b/SmileLock/Classes/PasswordContainerView.swift @@ -194,7 +194,11 @@ open class PasswordContainerView: UIView { // instantiate LAContext again for avoiding the situation that PasswordContainerView stay in memory when authenticate successfully self.touchIDContext = LAContext() } - self.delegate?.touchAuthenticationComplete(self, success: success, error: error) + + // delay delegate callback for the user can see passwordDotView input dots filled animation + DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { + self.delegate?.touchAuthenticationComplete(self, success: success, error: error) + } } } }