AlertViewManager is a singleton class for dispalying the UIAlerts in the applicaiton. Also, this class solves the multiple alert displays same time in the application.
AlertViewManager
written in Swift 4. Compatible with iOS 8.0+
AlertViewManager.sharedManager.showOkAlert("Title", message: "Custom Mesasge for the title", handler: nil)