Using a paging horizontal scrollView
.scrollTargetBehavior(.paging)
.scrollPosition(id: $model.value)
The first swipe model.value is not updated (but the view does page). Paging/scrolling after that, everything starts working and value updates just fine.
The value has a stable hash value and changing anchor position doesn't help.
Anyone else experiencing this?
Post
Replies
Boosts
Views
Activity
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?