PDFViewVisiblePagesChanged iOS 16

Hi,

we have an application that observes PDFViewVisiblePagesChanged and PDFViewPageChanged notifications for detecting the scroll state of a PDFView

NotificationCenter.default.addObserver(self,                                                 selector: #selector(handleOnScroll),                                                name: Notification.Name.PDFViewVisiblePagesChanged,                                                 object: nil)

NotificationCenter.default.addObserver(self,                                                 selector: #selector(handleOnScroll),                                                name: Notification.Name.PDFViewPageChanged,                                                 object: nil)

With iOS14 this worked like a charm, the notification gets triggered immediately when the user starts scrolling the pdf.

In iOS16 we have issues, it seems that the notifications get triggered/send only after the scrolling has been completed/stopped.

Can anybody confirm this?

Has anybody a solution how we can detect a scrolling PDFView using a different method? Background: While the PDF is scrolling other elements of the UI need to be disabled.

Thanks

Jürgen

PDFViewVisiblePagesChanged iOS 16
 
 
Q