FloatingLabelTextField : a simple and flexible implementation of the space saving Float Label Pattern
FloatingLabelTextField
FloatingLabelTextField
is a simple and flexible implementation of the space saving “Float Label Pattern”. It is inspired from SkyFloatingLabelTextField
FloatingTextField.mp4
Usage:
- Add
FloatingLabelTextField.xib
andFloatingLabelTextField.swift
files to your project - Add a view to the
ViewController
and subclass it usingFloatingLabelTextField
class. - Create outlet for newly created view in the
ViewController
- If you are interested in the events such as
textfieldDidBeginEditing
textfieldDidEndEditing
etc. add protocol conformance in yourViewController
.