let note = UITextView(frame: self.view.frame)
self.view.addSubview(note)
var text = ""
for i in 0..<3000{
text.append("\(i + 1)")
text.append("\n")
}
note.text = text
The code is really simple, when it runs on iOS14, it works fine. But when runs on iOS15 device, just scroll few times(eg: 351 lines), and tap the textView, it will scroll to 648 lines.
I don't know if it is a new feature or a bug on iOS15.
Test on: Xcode 13.0 beta3 and Xcode 12.5.1, iPhone XR (iOS15.0 beta3)