WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 37276776

(no title)

brandonasuncion | 2 years ago

Just curious, but have you tried the `equatable()` modifier?

It's doc description seems to be closer to what you need than the `id()` modifier.

<https://developer.apple.com/documentation/swiftui/view/equat...>

> Prevents the view from updating its child view when its new value is the same as its old value.

Also, https://swiftwithmajid.com/2020/01/22/optimizing-views-in-sw...

discuss

order

No comments yet.

powered by hn/api // news.ycombinator.com