I am using a UITableView to present a variety of viewControllers. Depending on which index is clicked, it will present a different view controller, which can then be dismis
Swift 3 :
DispatchQueue.main.async(execute: { self.present(yourViewControllerHere, animated: true, completion: nil) })