Skip to content

PavelVaskou/VSTextField

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VSTextField

Dead simple drop-in subclass of UITextField with super easy number formatting.

Example usage for a real time SSN formatting:

Example with SSN formatting

How to use it?

Just place the VSTextField.swift file into your project and replace your current UITextField with it. Then set:

textField.setFormatting(formattingPattern: "##-##-##", replacementCharacter: "#")  
// all # will be replaced by numbers

About

Dead simple drop-in subclass of UITextField with super easy number formatting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%