Understanding what makes SwiftUI redraws views can sometimes feel like a superpower...
A while ago I dug in and shared all my findings in this post: https://www.donnywals.com/understanding-how-and-when-swiftui-decides-to-redraw-views/
enjoy π
A while ago I dug in and shared all my findings in this post: https://www.donnywals.com/understanding-how-and-when-swiftui-decides-to-redraw-views/
enjoy π
Comments
Most of my debugging of complex issues has come down to having to deeply understand redraw reasons and figuring out how to make some views not redraw
This covers object identity and update logic. Very good intro before reading your post.