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
related reading
- Building a menu using List - a free SwiftUI by Example tutorialhackingwithswift.com
- Behind the scenes of UI: Part 2 - SwiftUIvbat.dev
- SwiftUI by Example - free quick start tutorials for Swift developershackingwithswift.com
- SwiftUI View Lifecyclevadimbulavin.com
- How to Take Screenshots of Views in SwiftUItnvmadhav.me
- Designing Fluid Interfaces - WWDC18 - Videos - Apple Developerdeveloper.apple.com
- Structural identity in SwiftUI | Swift with Majidswiftwithmajid.com
- SwiftUI MVVM Combine Example Made Easy: A Step-by-Step SwiftUI API Call Tutorialyoutube.com
- Pure UIrauchg.com
- What is SwiftUI? - a free SwiftUI by Example tutorialhackingwithswift.com
- What’s in the basic template? - a free SwiftUI by Example tutorialhackingwithswift.com
- Refactoring UIrefactoringui.com