title: Dismissing to root view controller without showing nested / intermediate view controller
body: <p>I want to dismiss all intermediate child view controllers and show the root view controller. </p>
  
  <p>The following piece of code works:
  <code>self.view.window?.rootViewController?.dismiss(animated: true, completion: nil)</code></p>
  
  <p>However, I can briefly see the intermediate view controller flash before it animates to dismiss to the root view controller. Any way, it just directly animates to the root view controller?</p>