Swift: Navigate to new ViewController using button
First off as I explain in this answer, you need to drag the segue from the overall UIViewController to the next UIViewController, i.e. you shouldn’t specifically connect the UIButton (or any IBOutlet for that matter) to the next UIViewController if the transition’s conditional: You’ll also need to assign an identifier to the segue. To do … Read more