PDFKit Annotations Accessibility

I noticed that the PDFAnnotations added to a PDFPageView are not taking the accessibility properties as part of the data that later is being reported by the Accessibility Inspector. And also it seems this class: PDFNodeAccessibilityElement is not exposed from PDFKit. Anyone knows a way to override the Accessibility information for a PDF Annotation?

Another issue I saw is that when you remove the PDF Annotation from the page, the Accessibility Inspector still shows it as if the annotation stayed there. Tried multiple ways to find a way to force the Accessibilty nodes to refresh, but sill haven't found a way for doing it.

Would be great to hear if anyone had to deal with this kind of issues before

Replies

Hi there! Currently, we don't have an API to override accessibility information of a PDF annotation. Please file an enhancement request request for an API to do this. Removing annotation from a page doesn't refresh sounds like a bug, so please file a bug for this as well! https://developer.apple.com/bug-reporting/