Non-editable UITextView shows insertion point

Number:rdar://36241680 Date Originated:30-Dec-2017 12:44 pm
Status:Open Resolved:
Product:iOS + SDK Product Version:Xcode 9.2, iOS 11.2
Classification:UI/Usability Reproducible:Always
When a tap and a half gesture is performed on an empty, non-editable UITextView, the insertion point is shown.

Steps to Reproduce:
The attached sample project shows this. Run it and perform the tap and a half gesture somewhere in the white area (tap then immediately touch again at the same point but don’t lift).

The steps done by the sample project:

Put a UITextView on screen
editable must be NO
text/attributedText must be nil

Expected Results:
Since the text view is not editable, it should not show the insertion point.

Actual Results:
The insertion point appears in the text view and starts blinking.

Xcode 9.2, iOS 11.2

The keyboard does not appear, so that’s good. It’s just the insertion point.

You may ask why I would have this useless text view. It’s in a collection view cell and this one item happens to have no text.

Workaround: disable userInteractionEnabled when the text view is empty.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!