Nov 11, 2024
Complete misses the point. In SwiftUI "views" are just definitions, examined and used to build and maintain the desired interface.
Structs are just data. They're lightweight and easy to construct--and to compare.
And when that comparison indicates that the data has changed, the interface is updated to match.