FloatingHintTextField 0.2.0

FloatingHintTextField 0.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2016
SPMSupports SPM

Maintained by Delfín Pereiro.



  • By
  • Pereiro, Delfin

FloatingHintTextField

Overview

FloatingHintTextField is a subclass of UITextField, written in Swift, and another implementation of the UX pattern known as the “Float Label Pattern”. It allows to keep the placeholder “label” even when

Requirements

  • ARC
  • iOS8

Installation

Manual

Simply download the latest files from the Releases page and add the FloatingHintTextField.swift class to your project.

Usage

import FloatingHintTextField

let  floatingHintTextField = FloatingHintTextField.init(frame: CGRectMake(20,200, 200, 40))
floatingHintTextField.placeholder = "Placeholder text"
self.view.addSubview(floatingHintTextField)

Example Project

An example project is included with this repo. To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Delfin Pereiro Parejo

License

FloatingHintTextField is available under the MIT license. See the LICENSE file for more info.