Empower Apps cover image

Behind the Scenes of SwiftUI with Aviel Gross

Empower Apps

00:00

How to Make Sure That Your State Can Utilize Mem Compare?

The fastest way is to use mem compare, which compares the bits in memory. POD views are simple enough that we can just compare the memory and not miss anything. If your view is POD, SwiftUI will use Memcompel; if it's not a POD, reflection. And then there is kind of like the thing in the middle, which is the double equals. That's where it starts to be confusing. The only way to focus your custom equality, for whatever reason, you need to use custom equality, you can wrap your view in Equitable View.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app