6 ms·
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://devel
by brandonasuncion 3y 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/equatable() 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-swiftui-using-equatableview/ https://swiftwithmajid.com/2020/01/22/optimizing-views-in-sw...