To run the example project, clone the repo, and run pod install
from the Example directory first.
FormatTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'FormatTextField'
import FormatTextField
var textField = FormatTextField()
textField.inputType = .phone
The options for inputType are the following
- phone: Formats a phone number, for example (123) 456-7890
- currecy: Formats as a currency with a given currency symbol, for example $1,234
- email: Validates as an email
Anthony Dito, anthonymdito@gmail.com
FormatTextField is available under the MIT license. See the LICENSE file for more info.