Skip to content

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

License

Notifications You must be signed in to change notification settings

intonarumori/FloatingLabelTextField

Repository files navigation

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