StringifyTextField
Custom UITextField is based on Stringify framework functionality.
Requirements
- iOS 10.0+
Installation
CocoaPods
StringifyTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:
Usage
StringifyTextField
is a textfield which can format inputed string with 4 available formats.
Available formats:
Amount format
You can specify currency mark for .amount
text type
Set up maximum integer digits (if your amount contains integer and fraction parts).
If your amount doesn't contain a fraction part, you can disable decimal
through Interface Builder or programmatically.
Credit card format
Exp date format
You can specify date format to get needed "clean" value
Plain value
You can get plain value from StringifyTextField
, e.g for .expDate
format it will be value with applying specific date format.
Bottom line & floated placeholder
You can add bottom line dispay in StringifyTextField
and floated label display
Demo
You can see other features in the example project.