I have a remarks section in in my project and I want to add these remarks in a UITextView
. I want it so that when I add long text into the text view the entire text view grows vertically to accommodate the text.
I don't want the UITextView
to scroll. Instead I want it to increase its height depending on its contents.
When we have short text I want it like this:
When I add a long text to the text view it should increase its height like this:
How do I implement it so the height automatically increases like this?