blob: 45d29cc9d747c5a796e4641b916cd833d18149f6 [file] [log] [blame]
{
"name": "SwiftMaskText",
"version": "1.0.6",
"homepage": "https://github.com/moraisandre/SwiftMaskText",
"summary": "A Swift plugin that allow add mask to UITextField.",
"description": "# SwiftMaskText\n\nAnother Swift plugin that allow add mask to UITextField\n\n![App Preview](https://github.com/moraisandre/SwiftMaskText/blob/master/Assets/appPreview.png)\n\n### Why to use it?\n * Because it's simples and fast\n * Configuration is through Settings Panel\n * Works with Swift 4.0\n\n## Mask Configuration\n### Mask Symbols\n\n| Characters | Format |\n|:------------:|:------------------------------:|\n| N | Number only [0-9] |\n| C | Characters [A-Z] (Always upper case) |\n| c | Characters [a-z] (Always lower case) |\n| X | Characters [a-Z] |\n| U | Characters + Numbers [A-Z] + [0-9] (Always upper case) |\n| u | Characters + Numbers [a-z] + [0-9] (Always lower case) |\n| % | Characters + Numbers [a-Z] + [0-9] |\n| * | Any character (Including special ones) |\n\n### Some examples\n\n#### Internacional examples\n\n| Field | Mask |\n|:------------:|:------------------------------:|\n| SSN | NNN-NN-NNNN |\n| Telephone | +NN (NNN) NNN-NNNN |\n| Credit Card | NNNN-NNNN-NNNN-NNNN |\n\n#### Brazilian examples\n\n| Field | Mask |\n|:------------:|:------------------------------:|\n| Telephone | +NN (0NN) NNNNN-NNNN |\n| CPF | NNN.NNN.NNN-NN |\n| RG | NN.NNN.NNN-% |\n| CEP | NNNNN-NNN |\n\n\n## How to use it?\n#### Using Carthage\n\n ```\n github \"moraisandre/SwiftMaskText\"\n ```\n#### Using CocoaPods\n\n ```\n pod ‘SwiftMaskText’\n ```\n#### Copy files to your project\n\n1. Add the *SwiftMaskField* folder to your project, it contains 2 files. Be sure that *'Copy items if needed'* is checked.\n ![Copy Items If Needed](https://github.com/moraisandre/SwiftMaskText/blob/master/Assets/CopyItemsIfNeeded.png)\n\n2. In your *ViewController* add an *UITextField* object. In 'Settings Panel' -> 'Identity inspector' set Class to *'SwiftMaskField'*\n ![Custom Class](https://github.com/moraisandre/SwiftMaskText/blob/master/Assets/customClass.png)\n\n\n3. Now go into 'Settings Panel' -> 'Attributes inspector' and set the Mask that you want it to\n ![Swift Mask Field](https://github.com/moraisandre/SwiftMaskText/blob/master/Assets/swiftMaskField.png)\n\n4. Done!\n\n## More info\n### Author\n*André Morais*\n\nWebsite: www.andremorais.com.br\n\nE-mail: [morais@andremorais.com.br](mailto:morais@andremorais.com.br?Subject=GitHub%20doubt)\n\n### License\nUnder the [MIT license](http://www.opensource.org/licenses/MIT).",
"authors": "Andre Morais",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"platforms": {
"ios": "10.0"
},
"source": {
"git": "https://github.com/moraisandre/SwiftMaskText.git",
"tag": "1.0.6"
},
"source_files": "SwiftMaskText/Source/*.swift",
"module_name": "SwiftMaskText",
"requires_arc": true,
"pushed_with_swift_version": "4"
}