Latest 0.4
Homepage https://github.com/seaburg/FormattedTextField
License MIT
Platforms ios 8.0, requires ARC
Authors

Carthage compatible
CocoaPods Compatible

UITextField subclass that supports text formatting

Installation

Carthage

github "seaburg/FormattedTextField"

CocoaPods

pod 'FormattedTextField'

Usage

import FormattedTextField
...
    let textField = FormattedTextField()
    textField.textFormatter = MaskTextFormatter(mask: "8 (×××) ××× ××××")
    textField.placeholder = "___) ___ ____"
    textField.unformattedText = "1111111111"
...

Example

Example.gif

Latest podspec

{
    "name": "FormattedTextField",
    "version": "0.4",
    "summary": "iOS formatted text field which supports symbols with variable-width encoding",
    "homepage": "https://github.com/seaburg/FormattedTextField",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Evgeniy Yurtaev": "[email protected]"
    },
    "source": {
        "git": "https://github.com/seaburg/FormattedTextField.git",
        "tag": "0.4"
    },
    "source_files": "FormattedTextField/*.swift",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This