Redraws in SwiftUI
summary
Covers rendering performance in SwiftUI, focusing on view redraws and how they affect app performance. Presents simple explanations and examples aimed at developers new to SwiftUI or preparing for performance reviews, with practical guidance on identifying and reducing unnecessary redraws.
AI-written summary · about
chapters (33)
- 0:00Introduction
- 1:05Why study redraws
- 3:14View lifecycle in SwiftUI
- 4:37Testing redraw methods
- 5:40How modifiers work
- 6:41Redraws on offset change
- 7:44Analyzing Print Changes
- 8:50Danger of onChange
- 9:33Basics recap
- 10:15Conditionals and redraws
- 11:58Switch conclusions
- 12:20Subview optimization
- 13:46Struct vs Subview
- 15:32Subview with Binding
- 16:37Subview Equatable issues
- 18:44Subview optimizations recap
- 19:48ObservableObject redraws
- 21:12ViewModel dependencies
- 22:38Subview via ViewModel
- 24:25Nested ViewModel impact
- 25:49ViewModel recap
- 26:50Environment navigation danger
- 27:55Navigation stack redraws
- 29:22Navigation recap
- 30:05Animations impact
- 31:31Geometry Reader myths
- 33:40Scroll Offset Reader
- 35:05Geometry Reader redraws
- 37:12Navigation Bar hiding
- 38:35Geometry Reader recap
- 39:17SwiftUI conclusions
- 40:40Test examples repo
- 41:03Q&A
related talks
35mSwiftUI Performance for Demanding Apps
28mSwiftUI for UIKit developers
39mSwiftUI — Everything from Scratch Again
38mGetting the Most Out of SwiftUI Preview
36mSwiftUI Everywhere
20mSpeeding up UIKit-based app development with Xcode Previews
25mDrawing Graphs with SwiftUI
22mTaming a Four-Year-Old Detail Screen That Slowed Down Over Time
