SkillAgentSearch skills...

PinCodeTextField

A customizable code text field

Install / Use

/learn @quavodanceq/PinCodeTextField
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PinCodeTextField

A customizable code textField. Can be used for phone verification codes, passwords etc.

example

Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

dependencies: [
    .package(url: "github.com/quavodanceq/PinCodeTextField.git", .branch(main))
]

Usage

  1. Interface Builder:

Add a UITextField in your Interface Builder and change the class of a textField from UITextField to PinCodeTextField. You can set the properties in the Attributes Inspector and see a live preview

<img width="304" alt="usage" src="https://github.com/quavodanceq/PinCodeTextField/assets/80914126/81ff425b-a4d9-4742-b70e-1cfeabc60aec">
  1. Programmatically:
let textField = PinCodeTextField()
textField.emptyDigitBorderColor = .gray
textField.filledDigitBorderColor = .blue
textField.digitsCount = 4
textField.bordersSpacing = 5
View on GitHub
GitHub Stars7
CategoryDevelopment
Updated9mo ago
Forks1

Languages

Swift

Security Score

67/100

Audited on Jun 7, 2025

No findings