Skip to content

devraj/PassCodeInput

Repository files navigation

SwiftUI PassCode Input

Note: this project is currently under aggressive development, please do not use it in a production application.

This project provides a Two Factor like Pass Code entry widget. It provides a nice user experience where a user can type in a pass code like input (letters or numbers) and provides bindable validation.

Features:

  • Configurable amount of cells
  • Cursor jumps forward as user enters digits
  • Cursor jumps backwards as user clears input
  • Support for user arbitrarily navigating between cells
  • Abstracted data model
  • Built for SwiftUI

Planned Features:

  • Restrict input to nominated character sets
  • Configurable input boxes
  • Group input boxes

Installation

Vendor in the component: If you wish to vendor the library into your project, simply include the following files from a desired release or master:

  • PassCodeModel.swift
  • PassCodeField.swift
  • PassCodeCharField.swift

Swift Package Manager

Running the Demo

Usage

Getting Help

Contact the author of the library directly:

For feature requests and bug reports please use Github issues.

License

PassCode Input is licensed under terms outlined by the MIT License.

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages