Lee Kah Seng
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.

--

--

Lee Kah Seng
Lee Kah Seng

Written by Lee Kah Seng

Support me by becoming a Medium member: https://leekahseng.medium.com/membership ⦿ 🇲🇾 Creator of https://swiftsenpai.com ⦿ iOS developer since 2011

No responses yet