title: How to reload a view controller when back from another view using tab bar
body: <p>I have a common view used when the user opens the app (VC1).  With a tab bar controller, I load another view (VC2) that can be used to update data visible in the previous one.  When I go back on VC1 (which is stack), it does not reload with updated data.</p>
  
  <p>I have tried to call the viewDidLoad in the viewWillAppear like so...</p>
  
  <pre><code>override func viewWillAppear(_ animated: Bool) {
      viewDidLoad()
  }
  </code></pre>
  
  <p>It works, but it loads over the VC1 still on stack and the user can see the change (not good).</p>
  
  <p>I suppose that to dismiss the VC1 would help, but I haven't found how to dismiss a view when using tab bar controller.</p>