Empower Apps cover image

Behind the Scenes of SwiftUI with Aviel Gross

Empower Apps

SwiftUI - How Does It Know if Something Has Changed?

2min Snip

00:00
Play full episode
SwiftUI can create a new view of whatever the view that is using that property that changed. And then it will compare the two, the existing view that's on screen and the new view. There are three ways to do that: memcompair, double equals or reflection. Only after it's doing that, SwiftUI will check whichever method you decided to use. It will then say, OK, I need to render the new view, basically.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode