Cancellable withObservationTracking in Swift
[]
Augmented Code
It would be much more useful if we could use this function in a way where we could have an observation token and as long as it is set, the observation is active. Will and did change are closures called before and after the value has changed. Changing the value in the view model only triggers the print lines when observation token is set.