Scrolling issues in UITextView on iOS 14

Hi,

We are currently facing an issue with the UITextView which added in UITableviewCell. The scrolling does not work properly for text inside a text field on iOS 14 when we have a large text in the text view.

We are using a UITextView to compose a message in our app. When there is a long text in the UITextView and the user scrolls and moves the cursor somewhere else, the cursor moves but the scrolling does not happen properly. We were able to verify that the issue does not occur on iOS 13.x with our implementation or the default mail app.

I have seen something similar on the default mail app as well on iOS 14.

Steps to reproduce

  1. Open the mail and start typing a new message.

  2. Add a text that is long enough such that view becomes scrollable.

  3. Seek to the bottom of the text.

  4. Scroll to the top of the text view and tap anywhere in the text.

Current Behavior

The UITextView scrolls irregularly and does not scroll to the cursor in the text.

Expected Behavior

The textview should be scrolled to the location of the cursor.

Please fix this quickly



Facing the same issue. Has this been resolved yet?
I am also facing the same issue. I have a tableview and expandable text view inside the cell. Once the text gets longer and we click on text at bottom, view scrolls to top.
Please fix the issue or let us know how to fix it in our apps.
Hey. Did anyone found a solution. Just found out this.. I have ticketsupport messaging view and the text input doesnt work for ios 14 only...
I also seem to have this issue...

Did you already find a solution to this problem?
Having this problem in iOS 14 too. Have a text longer than a page. Touching anywhere in the text to set the cursor and the view scrolls all the way to the end. Every time I type a character the view scrolls again. Very annoying user experience.
Sadly, this is still an issue in iOS 14.3.
For me, when keyboard is dismissed (i.e. textview is NOT first responder), tapping anywhere on the TextView while its top is not visible on-screen, triggers the following 2 animations:
1. it scrolls first to the top of the TextView
2. it scrolls back down to where I tapped (i.e. the new cursor location)

However, if they TextView IS the first responder in the above scenario, it only scrolls up to the top of the TextView (leaving cursor off-screen and allowing me to type off-screen, which is weird). Tapping again then results in even weirder scrolls, sometimes back down, sometimes further up past the to the top TextView.

I think there are some gestures/touches that need to be disabled when a TextView is placed inside a TableViewCell, I'm just not sure what exactly. Has anyone tried to subclass the TextView to override some behaviors?
Scrolling issues in UITextView on iOS 14
 
 
Q