Presenting Modal View Controller programmatically in Swift [duplicate]
Presenting a view controller of class name ModalVC programmatically
let modalVC = ModalVC.instantiateFromStoryboard(self.storyboard!)self.presentViewController(modalVC, animated: true, completion: nil)
Swift 3:
let modalVC = ModalVC.instantiateFromStoryboard(self.storyboard!)self.present(modalVC, animated: true, completion: nil)