I used to create a singleton class in Objective-C to execute all the service calls in my code. However, swift uses closures and I am unable to achieve the same results in Swift. Is there any way to do the same thing in Swift 3?I used to create a singleton class in Objective