lazy var manager: SessionManager of NetworkManager is a singleton Alamofire.SessionManager.default. So you win nothing by avoiding making your class singleton. Even more. A potential user will be adjusting own copy, but in fact changing the singleton's state. Quite dangerous.
lazy var manager: SessionManager of NetworkManager is a singleton Alamofire.SessionManager.default. So you win nothing by avoiding making your class singleton. Even more. A potential user will be adjusting own copy, but in fact changing the singleton's state. Quite dangerous.