thalysviana / TVMaskField

A nice and much simpler way to mask your textfields πŸ“ πŸ“²

Home Page:https://cocoapods.org/pods/TVMaskField

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TVMaskField

Build Status Version License Platform

TVMaskfield allows you to mask your textfield by simply setting a string mask to it.

There are three existing types for mask characters. Combine one or more of them to create the mask. The mask characters are the following:

  • 0 for numbers
  • A for letters
  • * for alphanumeric

Usage

Interface Builder

Define your textfield class to TVMaskTextField in the identity inspector and set your mask in attributes inspector.

Code

Define the mask by setting up the textMask property of the TVMaskTextField.

maskTextField.textMask = "0000 0000 0000 0000"

Installation

TVMaskField is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'TVMaskField'

Example

Alt Text

Author

Thalys Viana

License

TVMaskField is available under the MIT license. See the LICENSE file for more info.

About

A nice and much simpler way to mask your textfields πŸ“ πŸ“²

https://cocoapods.org/pods/TVMaskField

License:MIT License


Languages

Language:Swift 90.9%Language:Ruby 9.1%