Home

Awesome

ACAnimatedTextField

ACAnimatedTextField is a subclass of UITextField which replaces a text placeholder with an image.

Installation

ACAnimatedTextField is one file, simply drag and drop ACAnimatedTextField/ACAnimatedTextField.swift into your project and set the class of a UITextField to ACAnimatedTextField

Preview

Preview

Customization

4 things are currently able to be customized.

You can either set them via code or user attributes

Interface Builder

userAttributes

Code

demoTextField.activeColour = UIColor.redColor()
demoTextField.inactiveColour = UIColor.greenColor()
demoTextField.textFieldImage = UIImage(named: "locked")
demoTextField.imageWidth = 24
demoTextField.imageHeight = 24

Todo

License

ACAnimatedTextField is under the MIT license. Please check out LICENSE.md for more information