jobandtalent / AnimatedTextInput

Animated UITextField and UITextView replacement for iOS
MIT License
760 stars 128 forks source link

How can i limit height for multiline #105

Closed thang-nm closed 4 years ago

thang-nm commented 6 years ago

I want to set max height for input. If content over max height, it shows scroll. How i can do that? Thanks!

victorBaro commented 6 years ago

Good question. It is currently not supported but it would be a really nice addition if you have the time to submit a pull request. The component internally uses a UITextView so it should be possible to specify a maximum height.

bystritskiy commented 5 years ago

This is a very big problem! :(

victorBaro commented 5 years ago

Have you guys tried to use autolayout for achieving this? Set a height constraint lower than or equal to some value. I will try to take a look at this and see if I can manage to do it.

Tantalum73 commented 5 years ago

Hi ✌🏼 Please take a look at #112. My PR addresses your issue :]