 
         var mutableViewControllers = viewControllers
         mutableViewControllers
-            .index(of: viewController)
+            .index(of: destinationNavigationController ?? viewController)
             .flatMap { _ = mutableViewControllers.remove(at: $0) }
 
         tabBarController.setViewControllers(mutableViewControllers, animated: animated)

public protocol TabBarCoordinator: DefaultCoordinator {
    func configure(viewController: ViewController)
    var tabBarController: UITabBarController { get }
}

public enum PresentationStyle {

        configure(viewController: viewController)

        var viewControllers = tabBarController.viewControllers ?? []
        viewControllers.append(destinationNavigationController ?? viewController)

        tabBarController.setViewControllers(viewControllers, animated: animated)
    }
