Latest 0.1.2
Homepage https://github.com/anthonydito/FormatTextField
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

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.

Latest podspec

{
    "name": "FormatTextField",
    "version": "0.1.2",
    "summary": "A convenience class for UITextField that formats and validates input.",
    "description": "FormatTextField is a UITextField subclass that formats and validates the inputnfor the input of a given user. The available options are no format, formattingnas a phone number, formatting currency, and validating email.",
    "homepage": "https://github.com/anthonydito/FormatTextField",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Anthony Dito": "[email protected]"
    },
    "source": {
        "git": "https://github.com/anthonydito/FormatTextField.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "FormatTextField/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This