title: View Controller1 in a TabBarController won't automatically update view after ViewController2 is dismissed
body: <p><a href="https://i.stack.imgur.com/pdwuF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pdwuF.png" alt="enter image description here" /></a></p>
  <p><strong>SCENARIO</strong></p>
  <p>Xcode 11.5, Swift 5</p>
  <ol>
  <li>Using Core Data</li>
  <li>User wants to update their profile. VC2 is dismissed after user taps save. VC1 area highlighted in yellow should reflect the change.</li>
  </ol>
  <p><strong>PROBLEM</strong></p>
  <p>Data is being saved correctly. However, VC1 elements highlighted in yellow doesn't automatically update. If I go to another tab then come back, the view elements refresh with the updated changes.</p>
  <p><strong>MY CODE</strong></p>
  <p>I have a <code>setupUI()</code> method that lays out the elements and have tried adding it to VC1's viewWillAppear method, but no luck.</p>
  <pre><code>   //VC1:
  
     override func viewDidLoad() {
      super.viewDidLoad()
      fetchUser()
      setupUI()
      
  }
  
  override func viewWillAppear(_ animated: Bool) {
      super.viewWillAppear(true)
      
      setupUI()   
  }
  </code></pre>