1 min readMar 6, 2020
All the observers are just a weak reference to a view controller, therefore you can remove the observers any time you want, it should not cause any problem.
However, you do need to add the stopObserving()
function to the UIViewController
extension because the sample code do not implement this functionality.