UITextView: Drag handles for text selection can overlap popover

Number:rdar://50371150 Date Originated:2019-05-01
Status:Open Resolved:
Product:iOS + SDK Product Version:12.2
Classification:UI/Usability Reproducible:Always
When a popover is presented such that it overlaps an active text selection inside UITextView, one or both of the drag handles for the text selection will be drawn above the popover. This is incorrect: the popover should — as the name suggests — be on top of all other content.

Steps to Reproduce:
1. Build and run the attached sample project
2. Follow the instructions on the screen

Expected Results:
The popover is displayed on top of any text selection.

Actual Results:
At least one of the drag handles is drawn on top of the popover’s content.

Initially observed on iOS 12.2 (16E227) on an iPad Air 2 (Model A1567) reproduced on different iPad simulators.



Sample project

Can be found at https://github.com/PSPDFKit-labs/radar.apple.com/tree/master/50371150%20%20-%20Selection%20Handles%20Overlap%20Popover

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!