PlaceHolder animates when start typing in TextField in iOS

Meet Doshi picture Meet Doshi · Jan 27, 2016 · Viewed 23.6k times · Source

How to set this type of animation in UITextField? Nowadays, Many apps are using this.

enter image description here

Answer

Meet Doshi picture Meet Doshi · Jan 27, 2016

I've found the solution. You can manage this type of animation using multiple labels, and show-hide those labels into textFieldDidBeginEditing method.

If you want nice animation same as you describe into your question, then try once following third party repository for UITextField.

If you are looking for the UITextView equivalent of this animation, please visit UIFloatLabelTextView repository.