-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to disable placeholder animation while entering text? #658
Comments
Hey :) Welcome. There is this boolean: textField.isPlaceholderAnimated = false It wont animate, but will be at the top. Is that what you are looking for? |
We don't want to show it on top when user types i.e. default behavior of UITextfield. But we do want to show error message like Material TextField provides. |
So to confirm, you want the placeholder, but not the animation ? Or you don't want it at all. If you don't want it at all, you don't need to set it. Otherwise, I may need to consider this a feature request. |
yes we want placeholder but not animation. |
Okay that would be a feature request then. I can make that for you :) |
Thanks Daniel for quick support. |
How much time it usually take to add this type of feature? |
I will make it work within the next couple days, latest the end of the week. |
I will aim to get this out to you today. |
Thanks Daniel for update |
Hey, so the update is in Material 2.4.11. To use it, set the textField.placeholderAnimation = .hidden That should do it :) All the best! |
Thanks @DanielDahan , Its working. |
Hello,
I am new to Material library.
i have a custom requirement where i don't want to have animation where placeholder of text fields animates to top left. But i do need other feature of Textfield.
I tried looking into implementation of Text Field but didn't find anything concrete. Please suggest.
The text was updated successfully, but these errors were encountered: