Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joanmolinas/JMEasyTouchID
https://github.com/joanmolinas/JMEasyTouchID
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/joanmolinas/JMEasyTouchID
- Owner: joanmolinas
- Created: 2015-02-20T16:21:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-22T16:20:30.000Z (over 9 years ago)
- Last Synced: 2024-04-30T23:15:09.208Z (6 months ago)
- Language: Swift
- Size: 141 KB
- Stars: 64
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-swift-cn - JMEasyTouchID - TouchID one line wrapper. (Libs / Security)
README
TouchIDExtension
======================
TouchID used easy on one line in your ViewController.##Installation
At this moment, You can install only a way, manually.
For install, you can add JMEasyTouchID folder to your project.
##Usage
1. Import `JMEasyTouchID` and init a view.
2. In ViewController add the follow block:
**- useTouchID(_:completion)**
useTouchID("touchID", completion: { (success, messageState, errorResult) -> Void in
println(messageState)
});
3. Import LocalAuthentication framework##Return values
- success: BOOL -> if succes or not
- stateMessage: NSString -> message with touchID login
- errorResult:
- TouchID OK = nil
- LAErrorAuthenticationFailed = -1
- LAErrorUserCancel = -2
- LAErrorUserFallback = -3
- LAErrorSystemCancel = -4
- LAErrorPasscodeNotSet = -5
- LAErrorTouchIDNotAvailable = -6
- LAErrorTouchIDNotEnrolled = -7##Requeriments
- TouchID.
- iOS 8 or higher##License
Mit License##Contact
[email protected]http://joanmolinas.com