Custom UIViewControllerAnimatedTransitioning from UINavigationController when segue is performed from UISearchController's searchResultsController?

I have a custom pop animation is use with UINavigationController. I provide this via the delegate method

 
-
-(nullable id<UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController*)navigationController
                                          animationControllerForOperation:(UINavigationControllerOperation)operation
                                                       fromViewController:(UIViewController*)fromVC
                                                         toViewController:(UIViewController*)toVC

And it works except when I push the view controller initially from UISearchController's .searchResultsController. This issue is that when I push on the navigation stack when the UISearchResultsController is displaying the searchResultsController, when I pop back the UIViewControllerContextTransitioning passed to my animator doesn't provide values to account for the search controller displayed over the main view controller and the custom animation doesn't work.

Is there a good way to handle this? Thanks in advance.

Custom UIViewControllerAnimatedTransitioning from UINavigationController when segue is performed from UISearchController's searchResultsController?
 
 
Q