Post

Replies

Boosts

Views

Created

(API bug?) SwiftUI ScrollView with horizontal and vertical scrolling doesn't scroll to child views correctly
My app has several ScrollViews, and uses ScrollViewProxy.scrollTo() to snap to new child views as they are added. One ScrollView has both horizontal and vertical scrolling, and .scrollTo() doesn't work correctly. It scrolls to the correct position horizontally, but scrolls to (seemingly) random vertical positions. Has anyone encountered/solved this problem? ps: It does appear to work correctly when the ScrollView is wider than it is tall. But when it's taller than it is wide, as in my app, the random vertical scrolling happens.
1
0
533
Jan ’21