title: Swift: When Does the Completion Block of Dismiss View Get Executed?
body: <p>When does the completion block of dismiss view get executed?
  Is it after or before the user sees the view dismissed?</p>
  <p>I have this code to make a toast with a message inside completion block but never see the toast after this view dismissed.</p>
  <pre><code>       self.dismiss(animated: true, completion: {
         self.view.makeToast(message: &quot;Employee has been assigned successfully.&quot;, duration: 2.0, position: HRToastPositionCenter as AnyObject, title: &quot;Succeeded!&quot;)
  })
  </code></pre>
  <p>What I want is the user can see the toast when the view gets completely dismissed?</p>
  <p>How do I do this ?</p>