OMG, just spent > 2 hours trying to make a ScrollView scroll and turns out its a bug in the library for the parent component. ðŸ˜
#reactnative #scrollview #modals
My SwiftUI pet peeve. On macOS, when you resize a window that has ScrollView + LazyVStack, the layout looks funky and erratic. I guess that is because LazyVStack keeps adding and removing views as the viewport height changes and it keeps recomputing which views it should (not) include.
Was like this in last year’s SDK, seems the same in this year’s beta 1 as well.
Not sure what’s my expected behavior, but … not this.
@curtclifton should I file a FB?
Has anyone seen this? When you repeatedly issue scrollTo calls in SwiftUI when the text value arrives from upstream and changes frequently, the system ignores those. But if you throttle the scrollTo calls with a large timeout, it works correctly.
I think I’m missing something. Any ideas and suggestions in which direction I should dig more?