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
PinCodeKeyboard
Configure a 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 apull request
in our project. You can read more about this in the Github documentation.