An open API service indexing awesome lists of open source software.

https://github.com/irons163/irpasscode-swift

IRPasscode-swift is a powerful passcode for iOS.
https://github.com/irons163/irpasscode-swift

4digit 4pin fingerprint ios keychain passcode swift

Last synced: 3 months ago
JSON representation

IRPasscode-swift is a powerful passcode for iOS.

Awesome Lists containing this project

README

          

![Build Status](https://img.shields.io/badge/build-%20passing%20-brightgreen.svg)
![Platform](https://img.shields.io/badge/Platform-%20iOS%20-blue.svg)

# IRPasscode-swift

- IRPasscode-swift is a powerful passcode for iOS.
- The Objc version [IRPasscode](https://github.com/irons163/IRPasscode).

## Features
- 4 Pin support.
- FingerPrint support.
- High Security - KeyChain support.

## Technologies
- KeyChain support ([KeychainAccess](https://github.com/kishikawakatsumi/KeychainAccess)).

## Install
### Git
- Git clone this project.
- Copy this project into your own project.
- Add the .xcodeproj into you project and link it as embed framework.
#### Options
- You can remove the `demo` and `ScreenShots` folder.

### Cocoapods
- Add `pod 'IRPasscode-swift'` in the `Podfile`
- `pod install`

## Usage

### Basic
- Open `Passcode Setting Page`.
```swift
import IRPasscode_swift

let xibBundle = Bundle.init(for: IRPasscodeLockSettingViewController.self)
let vc = IRPasscodeLockSettingViewController.init(nibName: "IRPasscodeLockSettingViewController", bundle: xibBundle)
self.navigationController?.pushViewController(vc, animated: true)
```

- Open `Passcode verify page`.
```swift
if ((IRSecurityPinManager.sharedInstance.pinCode) != nil) {
IRSecurityPinManager.sharedInstance.presentSecurityPinViewControllerForUnlock(animated: true, completion: nil, result: nil)
}
```

## Screenshots
| Demo | Passcode Settings |
|:---:|:---:|
| ![Demo](./ScreenShots/demo1.png) | ![Passcode Settings](./ScreenShots/demo2.png) |
| Set Passcode | Confirm Passcode |
| ![Set Passcode](./ScreenShots/demo3.png) | ![Confirm Passcode](./ScreenShots/demo4.png) |
| Confirm Passcode Fail | Change Passcode |
| ![Confirm Passcode Fail](./ScreenShots/demo5.png) | ![Change Passcode](./ScreenShots/demo6.png) |
| Unlock Passcode | Demo Private Data |
| ![Unlock Passcode](./ScreenShots/demo7.png) | ![Demo Private Data](./ScreenShots/demo8.png) |