I have 4 pages.
My first page, I choose my provider and perform my segue for my navigationController,
My second page, is just my UINavigationController,
My third page, makes some work, and when it's over, calls this line
performSegue(withIdentifier: "GoToMainPageStat", sender: nil) //go to my last page
My last page, has a button for disconnect this account and I quit all UINaviationView with this line self.navigationController?.dismiss(animated: true, completion: nil)
At this point everything is working but when I want to connect again, it doesn't perform my segue at the step 3. I put debug log just before and after,the logs are executed but not my performForSegue.
Are you sure, you performing the segue in the main thread? If not move it to main thread.
DispatchQueue.main.async {
self.performSegue(withIdentifier: "GoToMainPageStat", sender: nil)
}