Skip to content
UITextField subclass that supports text formatting
Branch: master
Clone or download
Latest commit 74e1d5a May 7, 2019

README.md

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

You can’t perform that action at this time.