A Day in the Life of a SwiftUI View — Chris Eidhof
Here’s the video of my talk. Scroll down for an annotated transcript. The video contains some animations that I didn’t replicate in the annotated slides. This talk is about understanding the mental model behind SwiftUI, or at least, my mental model. I want to share with you how I think this stuff happens. And I learned this by teaching workshops, writing about this, and actually re-implementing large parts of SwiftUI. I tried to re-implement the state system and the layout system. When I say I, I actually mean we. I did a lot of this work together with Florian, who’s my collaborator. I want to focus on how the code we write translates into view trees. And then how these view trees translate into render trees. And I’ll define this a little bit better as we go about it. Let’s imagine we have this kind of content view that we wrote. And actually, we’re going to be writing this MyAsyncImage ourselves today. Now, what happens when we render a view like this? The first thing that happens is
Here’s the video of my talk. Scroll down for an annotated transcript. The video contains some animations that I didn’t replicate in the annotated slides. This talk is about understanding the mental model behind SwiftUI, or at least, my mental model. I want to share with you how I think this stuff happens. And I learned this by teaching workshops , writing about this , and actually re-implementing large parts of SwiftUI . I tried to re-implement the state system and the layout system. When I say I, I actually mean we. I did a lot of this work together with Florian, who’s my collaborator. I want
Explore this link on the map →related reading
- Behind the scenes of UI: Part 2 - SwiftUIvbat.dev
- SwiftUI by Example - free quick start tutorials for Swift developershackingwithswift.com
- Structural identity in SwiftUI | Swift with Majidswiftwithmajid.com
- SwiftUI View Lifecyclevadimbulavin.com
- Building a menu using List - a free SwiftUI by Example tutorialhackingwithswift.com
- What is SwiftUI? - a free SwiftUI by Example tutorialhackingwithswift.com
- What’s in the basic template? - a free SwiftUI by Example tutorialhackingwithswift.com
- Using stacks to arrange views | Apple Developer Documentationdeveloper.apple.com
- The Conductor Rewrite: What They Changed to Make It Fastperformance.dev
- Towards a unified theory of reactive UI | Raph Levien’s blographlinus.github.io
- Linear – The system for product developmentlinear.app
- Frequently asked questions about SwiftUI - a free SwiftUI by Example tutorialhackingwithswift.com