Last year I mentioned JVFloatLabelTextField an open source project providing a text field component with descriptive labels within the text field to maximize screen space that float away in a neat animation when the user begins typing.
Here’s a Swift based implementation of the floating label pattern from Fahim Farook in a library called FloatLabelFields inspired by JVFloatLabelTextField.
FloatLabelFields includes both UITextView, and UITextField subclasses with added floating labels. FloatLabelFields can be called directly with code, and can also be used in storyboards.
This snippet from the readme shows how easy it is to create a float label field:
let fld = FloatLabelTextField(frame:vwHolder.bounds) fld.placeholder = "Comments" vwHolder.addSubview(fld)
This animation from the readme shows FloatLabelFields in action:
111

You can find FloatLabelFields on Github here.
Original article: Open Source Swift Based Library Providing Text Views And Text Fields With Animated Floating Labels
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.