Empower Apps cover image

Behind the Scenes of SwiftUI with Aviel Gross

Empower Apps

00:00

SwiftUI - How Does It Know if Something Has Changed?

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.

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