This a UITextField
subclass that supports styling for valid / invalid just using a boolean, formatters so you can easily format credit card numbers, phone numbers and more. It supports input validators so you can limit the contents of a UITextField using maximum length, maximum value or even regex (perfect for validating emails).
FormTextField also supports styling using UIAppearance protocol. The example shown above uses this for styling.
FormTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'FormTextField'
FormTextField is available under the MIT license. See the LICENSE file for more info.
Elvis Nuñez, @3lvis