In SwiftUI, how to react to changes on “@Published vars” *outside* of a “View”
The old way was to use callbacks which you registered. The newer method is to use the Combine framework to create publishers for which you can registers further processing, or in this case a sink which gets called every time the source publisher sends a message. The publisher here sends nothing and so is of … Read more