SkillAgentSearch skills...

PassCodeInput

A Pass Code like Input implemented using SwiftUI

Install / Use

/learn @devraj/PassCodeInput
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SwiftUI PassCode Input

[!IMPORTANT]
Deprecation notice: As of iOS26 components like these are redundant, see Digit Entry View

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.

View on GitHub
GitHub Stars26
CategoryDevelopment
Updated5mo ago
Forks4

Languages

Swift

Security Score

92/100

Audited on Oct 12, 2025

No findings