I've added a segue from a view controller through a navigation controller to another view controller. I'm trying to call performSegueWithIdentifier but I'm running into this error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver () has no segue with identifier 'toLogin'
The code that I'm using is:
self.performSegue(withIdentifier: "toLogin", sender: self)
