I have a uisearch bar with code to search some data. After I click on some of that, I need to push to another UIView.
So I am using this
let vc=self.storyboard?.instantiateViewController(withIdentifier: "id") as! mapViewController
self.present(vc, animated: true, completion: nil)
It works well, but after segue, the view is not in the narvigation controller, because it is a present. So I wish to use show segue. Then I change the code to
self.show(vc, sender: self)
When I run it, it does not work and shows
"while an existing transition or presentation is occurring; the navigation stack will not be updated."
What should I do to use show segue here?