Latest 2.1.1
License MIT
Platforms ios 9.0, requires ARC

Floating label for UITextField

Implements the "Float Label Pattern" for iOS.
See Matt D. Smith’s design:–GIF-Mobile-Form-Interaction?list=users

There are many frameworks for iOS that provide this functionality:

This framework is designed to be storyboard-friendly (in fact, storyboards are
required!) There are some advantages to setting up the view in storyboards:

  • Position your textfield and label in the visible state, so you know how much top-clearance to leave above the text field.
  • Tweak appearance properties for the label in Interface Builder.

How to install

A demo project is included.

Configuring in Interface Builder


Latest podspec

    "name": "DPSFloatingLabelTextField",
    "version": "2.1.1",
    "summary": "A UITextField subclass that creates a floating label from the placeholder text.",
    "description": "DPSFloatingLabelTextField is a highly-customizable UITextField subclass thatncreatings a "floating label" from the placeholder string. It also supportsna bottom line border style.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Eric Baker": "[email protected]"
    "platforms": {
        "ios": "9.0"
    "source": {
        "git": "",
        "tag": "2.1.1"
    "source_files": "FloatingLabelTextField/Source/*.{h,swift}",
    "requires_arc": true

Pin It on Pinterest

Share This