Latest 1.0.9
Homepage https://github.com/ArtSabintsev/UIFloatLabelTextView
License MIT
Platforms ios 8.0, requires ARC
Authors

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 (or text view) 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.

Sample Gif of Library in Action

Image credit: Matt D. Smith.

Changelog (v1.0.8)

Features

  • Works with all view init styles
    • Visual Formatting Language (for programmatic NSAutoLayout)
    • Manual Frame Initialization
    • Storyboards and Xibs
  • Works with all NSTextAlignments
  • Added Placeholder support
  • Support for disabling all default UIMenuController options
    • E.g., Paste, Copy, Cut, Select, Select All

Installation

CocoaPods

pod 'UIFloatLabelTextView'

Carthage

github "ArtSabintsev/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

Arthur Ariel Sabintsev

License

Please refer to the LICENSE file.

Latest podspec

{
    "name": "UIFloatLabelTextView",
    "version": "1.0.9",
    "summary": "A subclassed UITextView that implements the Float Label UI design pattern.",
    "homepage": "https://github.com/ArtSabintsev/UIFloatLabelTextView",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ArtSabintsev/UIFloatLabelTextView.git",
        "tag": "1.0.9"
    },
    "source_files": "UIFloatLabelTextView/*.{h,m}",
    "requires_arc": true,
    "social_media_url": "https://twitter.com/ArtSabintsev",
    "screenshots": "https://camo.githubusercontent.com/9b1c3be013c6ea6d718d96fc0c02df427a0de1c7/687474703a2f2f6431337961637572716a676172612e636c6f756466726f6e742e6e65742f75736572732f363431302f73637265656e73686f74732f313235343433392f666f726d2d616e696d6174696f6e2d5f6769665f2e676966",
    "authors": {
        "Arthur Ariel Sabintsev": "[email protected]"
    },
    "license": "MIT"
}

Pin It on Pinterest

Share This