How would we create a segue in swift programatically, without using Storyboards. I cannot use storyboards because of how the app is structured, so I need to know how to do it pr
Actually, you can only set segue identifier on storyboard. So if you want to navigate between two controllers, you should use
func pushViewController(_ viewController: UIViewController, animated animated: Bool)
or
func presentViewController(_ viewControllerToPresent: UIViewController, animated flag: Bool, completion completion: (() -> Void)?)