Swift current ViewController dismiss after or before present new ViewController : My scenario, I am trying to create multiple present ViewController. Here, presenting new ViewController after I need to dismiss previous ViewController. 

ViewController A (RootViewController) next button click to showing ViewController B then View Controller B next button click to present model ViewController C. Now, If I close ViewController C need to show ViewController A. 

NOTE: ViewController A having closing button, If I close it. It will show Tabbar view controller.

[![example][1]][1]


  [1]: https://i.stack.imgur.com/CVzW4.png