From 4f1cc9f71aea51d5702bdfe2274b5ffce70490a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=89=E9=9B=A8=E8=BE=B0?= Date: Fri, 21 Sep 2018 11:06:51 +0900 Subject: [PATCH 1/3] mod. delay biometric auth delegate callback for the user can see passwordDotView input dots filled animation --- SmileLock/Classes/PasswordContainerView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) + } } } } From a78366a87b35d2df32a1157f2e15c813f7a6d03f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=89=E9=9B=A8=E8=BE=B0?= Date: Fri, 21 Sep 2018 11:10:41 +0900 Subject: [PATCH 2/3] add. manually initiate biometric authentication example code --- .../BlurPasswordLoginViewController.swift | 7 +++++++ 1 file changed, 7 insertions(+) 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() +// } } From 0654c1ae3e710e8a0c92fdddde186a0a479ac62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=89=E9=9B=A8=E8=BE=B0?= Date: Fri, 21 Sep 2018 11:13:27 +0900 Subject: [PATCH 3/3] bump version to 3.0.5 --- SmileLock.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.