Skip to content

seaburg/FormattedTextField

Repository files navigation

FormattedTextField

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