0Pricing
SwiftUI Academy · Lesson

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

  1. Publishers & Subscribers
  2. Transforming with map & filter
  3. Debounce for Live Search
  4. Bridging Combine into SwiftUI
← Back to SwiftUI Academy