Combine and SwiftUI views

In this post, Majid demonstrates how we can use SwiftUI's onReceive view modifier to react to values emitted from a Combine publisher. I really like the approach of wrapping the publisher creation and onReceive logic into a custom view modifier to make it reusable.