Skip to content

Commit

Permalink
Merge pull request #62 from recruit-lifestyle/develop
Browse files Browse the repository at this point in the history
delay biometric auth delegate callback
  • Loading branch information
liu044100 authored Sep 21, 2018
2 parents b0f7090 + 0654c1a commit b55841f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
// }
}
2 changes: 1 addition & 1 deletion SmileLock.podspec
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 5 additions & 1 deletion SmileLock/Classes/PasswordContainerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}
Expand Down

0 comments on commit b55841f

Please sign in to comment.