I’m not sure if this is a ”care later in the summer” situation, but on beta 1, with an .adaptive Grid Item, a scrolling LazyVGrid will hop and “bounce” when scrolling back up from the bottom of the grid.
I can see the scrollbar visibly hopping as item views are re-created.
Anyone else seeing this?
Okay, I think I've isolated it more. My "hops like crazy" scenario was multiple LazyVGrids inside a single ScrollView. I'm going to assume that's not a supported configuration.
I've attached a project and some videos to FB23182374 . Let me know if you have any questions or want me to try some things out on it.
Thanks for this @J0hn! I see what's going on here.
This sample project shows one LazyVGrid in a ScrollView, that looks fine – I'm curious to see if you find yourself needing to nest lazy stacks, there might be other ways to achieve the same result.
What stands out to me is:
Geometry-driven layout changes should happen in a single pass with a custom Layout, not through a state feedback loop.
This exact situation is covered in our WWDC26 session Dive into lazy stacks and scrolling with SwiftUI.
Watch that video, it will provide relevant insight into this app you are building.
And for usability concerns, you can probably get away with a fixed corner radius.
Lastly, your feedback report is still open and your use case is still important to us. Updates may be provided to you there, feel free to use the discussion to add more info in Feedback Assistant.
Let me know how it goes!
Travis