Latest 1.1.0
Homepage https://github.com/OpenCraft/GeneralFormatter
License MIT
Platforms ios 8.0
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

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

pod "GeneralFormatter"

Usage

Link it directly on UITextFieldDelegate

import GeneralFormatter

func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
    let formatter = GeneralFormatter(type: .cpfCnpj)
    return formatter.formatTextField(textField, shouldChangeCharactersIn: range, replacementString: string)
}

Author

Uriel Battanoli, [email protected]

License

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

Latest podspec

{
    "name": "GeneralFormatter",
    "version": "1.1.0",
    "summary": "A general formatter.",
    "description": "A library to format some general information like: CNPJ, CPF, Brazilian cell phone, etc.",
    "homepage": "https://github.com/OpenCraft/GeneralFormatter",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Uriel Battanoli": "[email protected]"
    },
    "source": {
        "git": "https://github.com/OpenCraft/GeneralFormatter.git",
        "tag": "1.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "GeneralFormatter/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This