I have an app with a UISearchController. This element of the UI is completely set up in code like this:
searchController = UISearchController(searchResultsCo
If you manage your own transitions and use popToViewController to leave the view, provide the context on the searchController instead of the view
searchController.definesPresentationContext = true
or you will get an error
popToViewController:transition: called on while an existing transition or presentation is occurring; the navigation stack will not be updated