I want to dismiss all child views and finally move to root view controller. I used the following code
DispatchQueue.main.async {
appDelegate.window?.rootViewController?.dismiss(animated: false, completion:nil)
}
But issue is that while moving to root view , it showing child view first then root view .
How can i solve the issue? any idea?