https://github.com/ryasnoy/applocker
AppLocker - simple lock screen for iOS Application ( Swift 4+, iOS 9.0+) Touch ID / Face ID
https://github.com/ryasnoy/applocker
applocker face-id faceid ios keychain keychain-wrapper locker lockscreen passcode password pincode secure security swift swift-3 swift-4 swift-language swift4 touch-id touchid
Last synced: about 1 month ago
JSON representation
AppLocker - simple lock screen for iOS Application ( Swift 4+, iOS 9.0+) Touch ID / Face ID
- Host: GitHub
- URL: https://github.com/ryasnoy/applocker
- Owner: Ryasnoy
- License: mit
- Created: 2017-07-27T18:48:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-26T14:37:18.000Z (almost 4 years ago)
- Last Synced: 2025-03-27T01:11:14.567Z (about 2 months ago)
- Topics: applocker, face-id, faceid, ios, keychain, keychain-wrapper, locker, lockscreen, passcode, password, pincode, secure, security, swift, swift-3, swift-4, swift-language, swift4, touch-id, touchid
- Language: Swift
- Homepage:
- Size: 450 KB
- Stars: 214
- Watchers: 11
- Forks: 45
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


[](http://mit-license.org)
[](https://developer.apple.com/resources/)
[](http://twitter.com/beqance)# AppLocker
Very simple locker for your `iOS` application### Preview
### Modes
```swift
enum ALMode { // Modes for AppLocker
case validate
case change
case deactive
case create
}
```### Configuration
```swift
struct ALOptions { // The structure used to display the controller
var title: String?
var subtitle: String?
var image: UIImage?
var color: UIColor?
var isSensorsEnabled: Bool?
}
```### Example
#### Simple call of controller
```swift
AppLocker.present(with: .create) // validate, deactive, change
```
#### Calling the controller with configuration
```swift
var options = ALOptions()
options.image = UIImage(named: "face")!
options.title = "Devios Ryasnoy"
options.isSensorsEnabled = true
options.onSuccessfulDismiss = { (mode: ALMode?) in
if let mode = mode {
print("Password \(String(describing: mode))d successfully")
} else {
print("User Cancelled")
}
}
options.onFailedAttempt = { (mode: ALMode?) in
print("Failed to \(String(describing: mode))")
}AppLocker.present(with: mode, and: appearance, over: self)
```## Requirements
AppLocker is written in Swift 3. iOS 8.0+ Required## Installation
Just move the `Source` folder to your project## CocoaPods
```
pod 'AppLocker'
```
For iOS 8.0
```
pod 'AppLocker', ~> '1.0.1'
```## Author
Oleg Ryasnoy, [email protected]
Telegram: https://t.me/ryasnoy
## License
AppLocker is available under the MIT license. See the LICENSE file for more info.