I have a tabBar controller as parent and I'm pushing a view controller with navigationController. then presenting 2 other view Controllers above to it. its like Tabbar(homeController) -> Child1(push) -> Child 2(presenting) -> child3(presenting). and im dismiss my last childViewController using timer. when its dismissing I want to go back to tabBarController(home).

```
let parent = self.presentingViewController
self.dismiss(animated: false, completion: {
    parent?.present(vc, animated: true, completion: nil)
})

```

I put this above code in my 2nd Child ViewController. But its come back to child1 viewContoller. need some help here.