UITextField subclass that supports text formatting

FormattedTextField

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

GitHub