Swift gurus are these two equivalent?
Trying to get a ScrollView to jump back to the previous first item when new items are added and even in a test project this seems to be required before it works reliably!
This itself is in an .onChange modifier listening to the items if that helps with context
@jknlsn scrollTo isn't labeled as MainActor/Sendable, so I’d be wary of calling it from inside a Task.
It's likely your onChange is being fired before the view has had a chance to redraw, so there's nothing to scroll to yet.
@jknlsn You could try .task(id: currentFirst) { //do scroll from main actor }, otherwise… https://mastodon.notsobig.co/@phill/110480328142517081