ACAnimatedTextField is a subclass of UITextField which replaces a text placeholder with an image.
ACAnimatedTextField is one file, simply drag and drop ACAnimatedTextField/ACAnimatedTextField.swift
into your project and set the class of a UITextField to ACAnimatedTextField
##Customization 4 things are currently able to be customized.
- Image
- Active colour
- Inactive colour
- Size of UIImageView
You can either set them via code or user attributes
demoTextField.activeColour = UIColor.redColor()
demoTextField.inactiveColour = UIColor.greenColor()
demoTextField.textFieldImage = UIImage(named: "locked")
demoTextField.imageWidth = 24
demoTextField.imageHeight = 24
- Make textRect change based on size of UIImageView
ACAnimatedTextField is under the MIT license. Please check out LICENSE.md for more information