title: Dismiss all view controllers below current view controller swift
body: <p>I am using a UINavigationController.</p>
  
  <p>Lets say I have these stacks</p>
  
  <pre><code>VC1 -&gt; VC2 -&gt; VC3 
  VC1 -&gt; VC3
  VC1 -&gt; VC2 -&gt; VC4 -&gt; VC3
  </code></pre>
  
  <p>In all cases, how can I dismiss all VC's below VC3 when it is the current view controller.</p>
  
  <p>VC3 is connected to a TabBarController if this make a difference.</p>