Speeding Up SwiftUI with Observable
summary
Presentation explains Apple’s new Observable macro for Swift, compares it to the older ObservableObject pattern, and shows how to use Observable and what advantages it brings. It outlines parts of the macro’s implementation and how it can speed up SwiftUI, and shares the speaker’s real-world experience migrating a large app to the new macro.
AI-written summary · about
chapters (19)
- 0:00Welcome
- 1:05About the speaker
- 2:09What is ObservableObject
- 3:34ObservableObject problems
- 5:53Architectural solutions
- 8:03Nested object issues
- 10:34Combine and protocol problems
- 11:17What are macros
- 12:18Macro vs ObservableObject
- 15:30How macro works
- 17:39Change registration in macro
- 19:30iOS version support
- 20:55Animation problems
- 22:01Property value requirements
- 23:27Performance comparison
- 24:56Task issues in SwiftUI
- 26:27Future macro improvements
- 27:30Optimization results
- 28:14Q&A
related talks
36mData flow in SwiftUI - from @State to @Observable...
49mWhy SwiftUI?
19mRxSwift on iOS
41mYour Life With (and Without) Observation
44mSwift Macros: Simpler, Cleaner, Faster
47mExploring Key Practices of Observation and SwiftData in New Application Development
40mFunctional iOS Architecture in the SwiftUI Era
35mSwiftUI Performance for Demanding Apps
