Meet Doshi Meet Doshi - 5 months ago 77x
Swift Question

PlaceHolder animates when start typing in TextField in iOS

How to set this type of animation in

? Nowadays, Many apps are using this.

enter image description here


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.