MIT License

项目介绍

Ryasnoy/AppLocker 是一个托管在 GitHub 上的开源项目,主要使用 Swift 编写,采用 MIT License 许可证,目前获得 214 个 Star、45 次 Fork。

仓库全名
Ryasnoy/AppLocker
开源许可证
MIT License
Star 数
214
Fork 数
45
未关闭 Issue
10

README 摘要

AppLocker Very simple locker for your iOS application Preview Modes Configuration Example Simple call of controller Calling the controller with configuration Requirements AppLocker is written in Swift 3. iOS 8.0+ Required Installation Just move the Source folder to your project CocoaPods For iOS 8.0 Author Oleg Ryasnoy, [email protected] Telegram: https://t.me/ryasnoy License AppLocker is available under the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

AppLocker 用什么语言开发?

主要使用 Swift 编写,采用 MIT License 许可证,目前有 214 个 Star。

AppLocker 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 AppLocker 的源码?

可以直接克隆仓库:git clone https://github.com/Ryasnoy/AppLocker.git,默认分支为 master;安装与运行步骤见仓库 README。

AppLocker 最近还在维护吗?

仓库最近一次更新为 2021年5月26日,当前有 10 个未关闭 Issue;Star 数为 214,可作为社区活跃度的参考。

关于

AppLocker - simple lock screen for iOS Application ( Swift 4+, iOS 9.0+) Touch ID / Face ID

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

Ruby
Swift

README

Swift License Platform Twitter

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.

评论

暂无评论