GithubHelp home page GithubHelp logo

alexguoq / uifloatlabeltextfield Goto Github PK

View Code? Open in Web Editor NEW

This project forked from artsabintsev/uifloatlabeltextfield

0.0 2.0 0.0 2.95 MB

A subclassed UITextField that follows the Float Label UI design pattern.

License: MIT License

Objective-C 95.29% Ruby 4.71%

uifloatlabeltextfield's Introduction

UIFloatLabelTextField

A subclassed UITextField that implements the Float Label UI design pattern.


Note

If you are looking for the UITextView equivalent of this class, please visit my UIFloatLabelTextView 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.

Sample Gif of Library in Action

Image credit: Matt D. Smith.

Changelog (v1.0.15)

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
  • Animations
    • Animation when toggling UILabel visibility
    • Animation when clearing text

Installation

pod 'UIFloatLabelTextField'

Usage

Check out UIFloatLabelTextField.h for a full list of editable properties. Also, check out the UIFloatLabelSampleApp for an example impementation of the application.

Credit

I want to credit Jared Verdi for developing the first iOS implementation of this pattern in his JVFloatLabeledTextField project. I used it as a reference to make this version, but executed many aspects differently. I also added a few other features that I personally needed, and plan on enhancing this library overtime.

Created and maintained by

Arthur Ariel Sabintsev

License

Please refer to the LICENSE file.

uifloatlabeltextfield's People

Contributors

artsabintsev avatar

Watchers

gryphon avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.