UIFloatLabelTextView
A subclassed UITextView that implements the Float Label UI design pattern.
Note
If you are looking for the UITextField
equivalent of this class, please visit my UIFloatLabelTextField repository.
About
In 2013, Matt D. Smith unveiled the Float Label user interface design pattern. In short, it retains a text field's placeholder above said text field as a floating label. This label is brightly colored when the field is active, and dimly colored when a user has finished editing that field.
Image credit: Matt D. Smith. <<<<<<< HEAD
Changelog (v1.0.0)
- Initial version =======
Changelog (v1.0.0)
- Initial code commit
Features
- Works with all view
init
styles- Visual Formatting Language (for programmatic NSAutoLayout)
- Manual Frame Initialization
- Storyboards and Xibs
- Works with all
NSTextAlignments
- Support for disabling all default UIMenuController options
- E.g., Paste, Copy, Cut, Select, Select All
Installation
pod 'UIFloatLabelTextView'
Usage
Check out UIFloatLabelTextView.h
for a full list of editable properties. Also, check out the UIFloatLabelSampleApp for an example impementation of the application.
Created and maintained by
License
Please refer to the LICENSE file.