FormatTextField 0.1.2

FormatTextField 0.1.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Anthony Dito.



  • By
  • Anthony Dito

FormatTextField

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

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

pod 'FormatTextField'

Usage

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

Demo

alt text

Author

Anthony Dito, [email protected]

License

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