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.
- Host: GitHub
- URL: https://github.com/irons163/irpasscode-swift
- Owner: irons163
- License: mit
- Created: 2021-05-06T06:59:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-10T04:14:23.000Z (over 4 years ago)
- Last Synced: 2025-09-26T16:08:25.513Z (4 months ago)
- Topics: 4digit, 4pin, fingerprint, ios, keychain, passcode, swift
- Language: Swift
- Homepage:
- Size: 587 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


# 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 |
|:---:|:---:|
|  |  |
| Set Passcode | Confirm Passcode |
|  |  |
| Confirm Passcode Fail | Change Passcode |
|  |  |
| Unlock Passcode | Demo Private Data |
|  |  |