PDFKit on macOS. Nearest page & converting point to document point not working.

On macOS page(for: viewPoint, nearest: false) returns the wrong page.

If I enter a coordinate on page 1 less than 1/3 of the way down, it returns that it is on page 0. Likewise on page 2 it will say page 1 anywhere in the top third.

Also PDFView's convert(point, to: page) will return seemingly random values for the document point's y value, but in the expected range of 0 to about 792 (for an 11" page at 72dpi). Displaying the document horizontal/vertical doesn't matter.

The x value of the point is always correct and everything works correctly on iOS.

I've tried Xcode 15.0 and 15.1 beta 3.

Anyone using these functions correctly, or seeing the same issue?

PDFKit on macOS. Nearest page & converting point to document point not working.
 
 
Q