UITextView automatically scrolls upwards when dragging selection handles and textContainerInset is about half the textview height

Anyone else noticed this issue? Is there a workaround? The issue can be reproduced on an iPad Pro 11" with this code:


class ViewController: UIViewController {
   
    @IBOutlet weak var textView: TextView!
   
    override func viewDidLoad() {
        super.viewDidLoad()
        let h = CGFloat(560)
        textView.textContainerInset = UIEdgeInsets(top: h, left: 0, bottom: 0, right: 0)
    }
   
}

Did you ever find an answer to this? I am having the same issue

No, I even filed FB7542868 in January 2020 but never got a response.

UITextView automatically scrolls upwards when dragging selection handles and textContainerInset is about half the textview height
 
 
Q