When storing custom values in properties of an @Observable, it’s recommended to ...

@natpanferova@mastodon.social

When storing custom values in properties of an @Observable, it’s recommended to make them Equatable to minimize SwiftUI view updates. I’ve just published a post looking at how @Observable handles equal assignments and why Equatable conformance matters: nilcoalescing.com/blog/Equatab
#SwiftUI #iOSDev