Passcode Lock




TAG:  Emoji , Password  ,  Passcodelock  , Swift , TouchID , Passcode-Authentication , Lock , Passcode

Licence:  MIT

Classification:  Passcode Lock

Platform:  IOS

Language:  Swift

Device:
iPhone / iPad

Download

Installation

RecordARFace is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SimplePasscodeView'

Introduction

First, import SimplePasscodeView and then declare passcodeView as a IBOutlet property:
import SimplePasscodeView

class ViewController: UIViewController {
@IBOutlet  weak  var passcode: SimplePasscodeView!
override func viewDidLoad() {
super.viewDidLoad()
passcodeView.delegate = self
}
}

extension ViewController: SimplePasscodeDelegate {
func didFinishEntering(_ passcode: String) {
//Do whatever you want
}
}
Drag and drop a UIView in your xib or storyboard and assign the custom class to SimplePasscodeView. Follow the steps below:

Customizable Properties

  • length - Pin length that is required. The empty circles will be rendered based on this
  • defaultSpacing - Spacing between each circle/pin.
  • secureEntry - Masking the entry either secure or not-secure.
  • pinfillColor - The color to fill when pin entry is received.( only for secure entry )
  • pinborderColor - The border color for the circular indicator.
  • pinfont - Font for pin text that is entered.( only if not secure entry )
Other customizable properties available.

The function of tracking eye movements can be confirmed on the actual machine from ios 12.

0 Comments: