Don’t call us - we’ll call you: Modern SwiftUI callbacks us...
summary
Shows how Swift's AsyncStream and continuations let code yield real-time updates with for await loops, and that Firebase iOS SDK 12.12 exposes Firestore snapshots as async sequences for direct streaming of documents. Presents a pizza-order demo wired to Firestore and Auth that updates UI live; initial approach fails for continuous user-scoped queries so it uses flatMapLatest from Swift Async Algorithms. Includes concrete APIs, a working demo, and code samples.
AI-written summary · about
chapters (25)
- 0:00Introduction and speaker intro
- 1:24About the speaker and projects
- 2:48Pizza-themed talk setup
- 3:11Basic programming history
- 6:00Structured programming explained
- 7:25Sequences in Swift
- 10:16Filtering pizza ingredients
- 11:02Implementing a pizza topping dispenser
- 12:28Why async sequences matter
- 14:54Async patterns overview
- 15:36Delegates in Objective-C
- 17:44Callbacks in Objective-C
- 19:31Delegates in Swift
- 20:39Closures and callbacks
- 22:03Combine framework basics
- 24:57Combine operators and benefits
- 26:01Structured concurrency with async streams
- 28:53Firebase and async streams
- 30:40Firestore snapshot listeners
- 31:44Async streaming in Firebase SDK
- 33:10Combining auth and Firestore streams
- 34:16Live demo of pizza ordering app
- 35:39Fixing flatMap with async algorithms
- 36:23Why structured concurrency
- 37:09Resources and closing
