Custom UITextFields effects inspired by Codrops, built using Swift.
Currently it features the following effects from the article:
- [x] Kaede
- [x] Hoshi
- [x] Jiro
- [x] Isao
- [x] Minoru
- [x] Yoko
- [x] Madoka
- [x] Akira
- [x] Yoshiko
How they look
- Looking for Swift 2.3 support? Check out the 1.2.0 tag.
- Looking for Swift 2.1 support? Check out the 1.1.1 tag.
- Looking for Swift 1.2 support? Check out the
The easiest way to install this framework is to drag and drop the
TextFieldEffects/TextFieldEffects folder into your project. This also prevents the
frameworks problem in iOS where the IBInspectable and IBDesignable are stripped out.
Add the following to your Podfile:
use_frameworks! pod 'TextFieldEffects'
Add the following to your Cartfile:
How to use them
Every effect is properly documented in the source code, this is the best way to both understand and see what they do. There is also an example project included with all the effects and their settings.
The library is a simple drop-in, as soon as you set your subclass to one of the effects and your module to
TextFieldEffects you will be able to see all the IBDesignable settings in the storyboard.
If you like to get your hands dirty, you can use them just like you would normally use any
let textField = KaedeTextField(frame: textFieldFrame) textField.placeholderColor = .darkGrayColor() textField.foregroundColor = .lightGrayColor() view.addSubView(textField)
Is that simple.
Subscribe to iOS Example
Get the latest posts delivered right to your inbox