Bridging Combine into SwiftUI
Feed publisher output into observable state.
Two Worlds to Connect
Combine produces a stream of values over time, while SwiftUI redraws from state. Bridging the two means feeding that stream into state.
State Drives the UI
SwiftUI only re-renders when an observed property changes, so to update the screen a publisher must ultimately write into such a property.
All lessons in this course
- Publishers & Subscribers
- Transforming with map & filter
- Debounce for Live Search
- Bridging Combine into SwiftUI