So I had to choose between a random crash on ScrollViewProxy scrollTo and a flash when adding a new posts on the top of the timeline... I choose the flash. This is a sad day for #SwiftUI
@dimillian I'm not sure why this fixes the crash? Any explanation to share? Thanks!
@alpennec the list view ld force the list to completely re render, and then once it’s rendered I’m scrolling to the original status. The crash seems like it was related to scrolling when the list was not ready. The opacity is just to hide the fact that in between it’s scrolled to the top.
@dimillian @alpennec wouldn’t it be better to ID the whole List (or, preferably, ForEach inside?)
@lvalenta @alpennec the id is on the whole list.
@dimillian @alpennec aha! And what about just ForEach?
@lvalenta @alpennec i wonder. It’s so hard to test that every change to test the crash is very time consuming :/
@dimillian @alpennec totally get it. Whenever you have time, try looking at it :-) I think the difference would be that scrolling position per se would not be destroyed in IDing ForEach