Discussion about this post

User's avatar
John's avatar

Another interesting corollary is equality. Views can actually conform to Equatable. This lets SwiftUI compare them using only the important fields you specify to possibly avoid unnecessary updates. So it's the answer to “if this is the same conceptual view, are the new inputs equivalent enough that SwiftUI can skip updating it?”

No posts

Ready for more?