I am having trouble presenting a CustomAlert, subclass of UIViewController
, from a UINavigationController
stack view. To be more descriptive, I have a UITabBarController
that wraps a UINavigationController
. navController, has a rootView and a another pushed to the stack view, leafView of type UITableViewController
. From leafView, I would like to present an alertView of type UIViewController
which is transparent for the most part and with a opaque view inside. The problem is that when presenting, the background of this alertView is no longer transparent, but black, and upon dismissal it does not return to the leaf controller, but to the rootView. I think I am not presenting my alert from the correct view. How should I fix this?
searchController.present(friendAlert, animated: false, completion: nil)