I have encountered this warning:
pushViewController:animated: called on while an existing transition or presentation is occurring; the navigation stack
I solved this using DispatchQueue.main.asyncAfter call popviewcontroller after the UIAlertController's Transition complete
1) Show Alert
2) Call pop viewcontroller after delay
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
self.navigationController?.popToRootViewController(animated: true)
}
This is not best way, but it works!