Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 881 Bytes

README.md

File metadata and controls

28 lines (26 loc) · 881 Bytes

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