title: Swift viewWillAppear not being called after dismissing view controller
body: <p>I am presenting a view controller from a view controller called HomeController like so:</p>
  
  <pre><code>let viewController = self.storyboard?.instantiateViewController(withIdentifier: "LoginController") as! LoginController
  
  let navigationController: UINavigationController = UINavigationController(rootViewController: viewController)
  
  present(navigationController, animated: true, completion: nil)
  </code></pre>
  
  <p>In the presented view controller LoginController at some point gets dismissed:</p>
  
  <pre><code>self.dismiss(animated: true, completion: nil)
  </code></pre>
  
  <p>But when it comes back to HomeController it is not calling viewWillAppear, I really need to check on condition on HomeController when it comes back to it, So how can I call viewWillAppear when LoginController dismisses the view?</p>