SwiftUI Performance for Demanding Apps
summary
Compares SwiftUI to UIKit and gives concrete tactics used when Adobe Bēhance rebuilt navigation infra and main Feed so the app runs well even on an iPhone 6S Plus. Shows measurable wins: reduce redundant diffing, split dependencies from state, prefer memcmp or EquatableView over slow reflection, use StateObject vs ObservedObject correctly, debug with _printChanges, and avoid heavy work in body so the Feed sustains 60fps.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:07SwiftUI performance matters
- 3:34Imperative to declarative
- 5:20UIKit vs SwiftUI
- 8:29Declarative state management
- 14:10SwiftUI performance fundamentals
- 15:33Keep view body simple
- 20:27State vs observed object
- 24:35Avoid redundant updates
- 28:25Splitting state into views
- 33:39POD and equality
- 40:43Optimizing expensive views
- 43:31Beware closures
- 44:32SwiftUI performance tips
- 45:13Code maintainability
- 46:18Q&A
related talks
24mSwiftUI Performance Tips
30mFrom Slow to Flow: Tips for Accelerating Your App Performance
38mBuilding Responsive Interactions
42mTuning your app using Xcode's Instruments
54m60 fps UI on iOS
18mThe Amazing Race; Performance of Standard iOS Elements & Tech
40mFluttering at 60 FPS
39mPerformance issues: the usual suspects
