How to stop observing the state on ios onDisapper {}, right now it's getting called and there is no dinit or cancelled mechanism in *ObservableObject. I'm kinda new to ios and any help will be appreciate ? I just want to deallocate the viewmodel onDisappear {} .