PDFKit’s characterIndex(at:)
method consistently returns the incorrect character index on iOS 17. It seems to get worse the further down the page you get. This breaks critical functionality that my app relies on. Prior to iOS 17, it would be wrong sometimes but not as consistently.
This is the method in question: https://developer.apple.com/documentation/pdfkit/pdfpage/1503775-characterindex
I've filed feedback FB12951475 with a sample project attached.