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.xibandFloatingLabelTextField.swiftfiles to your project - Add a view to the
ViewControllerand subclass it usingFloatingLabelTextFieldclass. - Create outlet for newly created view in the
ViewController - If you are interested in the events such as
textfieldDidBeginEditingtextfieldDidEndEditingetc. add protocol conformance in yourViewController.