iOS Swift Combine: cancel a Set
On deinit your ViewController will be removed from memory. All of its instance variables will be deallocated. The docs for Combine > Publisher > assign(to:on:) say: An AnyCancellable instance. Call cancel() on this instance when you no longer want the publisher to automatically assign the property. Deinitializing this instance will also cancel automatic assignment. 1 … Read more