I\'m manually invoking a segue (set as modal) in order to display a login form in Xcode 4.2 using Storyboards with the following line of code:
[self performSegue
The following code works in swift 3:
self.dismiss(animated: true, completion: nil)