Network reachability status monitoring on iOS (Part 2)
Sauvik Dolui

Hi Kay Butter, thanks for the suggestion. But as the ViewControllers or any object can just listen to the notifications by simply calling

ReachabilityManager.shared.addDelegate(delegate: self)

and deregister itself by

ReachabilityManager.shared.removeDelegate(delegate: self)

, they really do not need to keep a reference to the shared instance of ReachabilityManager. Following the usages, there is not any chance to create a retain cycle. So we do not need to make the array as weak or unowned. Following your suggestion, I have renamed delegates to listeners 😀.