PinCodeInput - admiral-team/admiralui-ios GitHub Wiki

Class

PinCodeInput - A view with dots element for secure pin code entry


Declaration

open class PinCodeInput: CodeInputControl, AnyAppThemable

Overview

Pin code input field with the ability to enter from 2 to 10 values. It is possible to switch the state and number of values ​​of each input through variants.

Live example

Configure a PinCodeKeyboard

Configure PinCodeKeyboard with eight items count and method for enter secure text and remove secure text

let pincodeControl = PinCodeInput()
pincodeControl.itemsCount = 8

func pincodeAddText(text: String) {
   pincodeControl.insertText(text)
)

func pincodeRemoveText() {
   if !pincodeControl.text.isEmpty {
      pincodeControl.deleteBackward()
   }
}

Contribution

You can help us to find bugs or ask us to add features.

  • To start issue please use ready-made templates.
  • To make changes to the repository, you need to create a fork of the project, make changes to the code and create a pull request in our project. You can read more about this in the Github documentation.