Post

Replies

Boosts

Views

Activity

Reply to Debugging SwiftUI Framework crash.
Our app is crashing with a similar stack trace. On iOS 16 a scroll view doesn't scroll back to position 0, when the content of the grid changes, which may cause the app to crash. In our case we display a list of items from a search request, which responds with 30 items of the total search result. Scrolling to the end, we load the next 30 items and so on. In a sticky view we display a set of buttons, that modifies the search parameters and causes to reload the whole screen, resulting in a list of 30 items. So lets say the view is displaying item at index 100 (4 page loads). Since the scroll view is not jumping back to the start position when hitting one of the quick filter buttons, the lazy grid tries to render the item at index 100 and crashes. I hope, this helps.
Mar ’23