Meet Doshi Meet Doshi - 2 years ago 256
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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download