UITextView spell checking dots should be drawn according to the content scale when inside a scroll view

Originator:michaelhochs
Number:rdar://30574703 Date Originated:17-Feb-2017 09:55 AM
Status:Open Resolved:
Product:iOS Product Version:iOS 10.2
Classification:UI/Usability Reproducible:Always
 
Summary:
When placing a UITextView inside a UIScrollView that has zooming enabled, and then updating the content scale for the subviews in the text view so that text is rendered sharp and clear when zoomed in, this has no effect on the spell checking dots.

Steps to Reproduce:
- Open the sample
- Type something that produces spell checking errors

Expected Results:
- The dots are rendered clear like the text

Actual Results:
- The dots are rendered blurry and pixelated

Regression:


Notes:
The ideal behavior would be if the text view could automatically detect if it is in a scroll view and update its content scale, however I see how this is a violation of the parent-child relationship. The second best option would be if we could just set the content scale on the text view itself. And given that all the subviews of the text view are private that seems to be the thing that ideally should work. No matter where we should set that value though, the spell checking dots should respect this and draw a sharp circle.

Comments

Sample Code

https://github.com/PSPDFKit-labs/radar.apple.com/tree/master/30574703%20-%20TextViewInScrollView

By michaelhochs at Feb. 17, 2017, 9:02 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!