You have to hold on to the cancellable as long as you want to receive the published values. In your code the cancellable is released as soon as the func applicationDidFinishLaunching finishes and no updates are send any more.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: