I have a Navigation Controller with a View Controller displaying a button. The button is linked to another View Controller using a push segue which automatically adds a top navi
If we use push segue, then use popViewController
@IBAction func backButtonClicked(_ sender: Any) { self.navigationController?.popViewController(animated: false) }