项目
在 GitHub 查看
Ryasnoy/AppLocker
关于
AppLocker - simple lock screen for iOS Application ( Swift 4+, iOS 9.0+) Touch ID / Face ID
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
AppLocker
Very simple locker for your iOS application
Preview

Modes
enum ALMode { // Modes for AppLocker
case validate
case change
case deactive
case create
}
Configuration
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
AppLocker.present(with: .create) // validate, deactive, change
Calling the controller with configuration
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.
探索相关项目
加载中…