intonarumori / FloatingLabelTextField

A clean and flexible implementation of the floating label UI pattern in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FloatingLabelTextField

Build Status License: MIT

A Swift implementation of the floating label UI pattern originally created by Matt D. Smith (@mds).

This implementation features:
☑️️ optional underline
☑️️ error message support
☑️️ placeholder / title / selected title options for flexibility
☑️️ text insets for setting margins around the editing text
☑️️ an additional subclass implementing a UIImage based icon on the left
☑️️ Interactive examples demonstrating the different available properties

Installation

CocoaPods

We only support manual installation at the moment. Add the following line to your podfile:

pod 'RMFloatingLabelTextField', :git => 'https://github.com/intonarumori/FloatingLabelTextField.git'

Then run: pod install

About

A clean and flexible implementation of the floating label UI pattern in Swift

License:MIT License


Languages

Language:Swift 95.8%Language:Ruby 2.6%Language:Objective-C 1.6%