title: How to perform an action after performSegue is finished in Swift
body: <p>Is there any possible way to perform an action after a segue has finished in swift?</p>
  
  <p>I am calling this code:</p>
  
  <pre><code>self.performSegue(withIdentifier: "showDamageReportSegue", sender: self)
  </code></pre>
  
  <p>The segue opens a new ViewController modal and after the user presses the done button I want it to continue running the code underneath which is </p>
  
  <pre><code>self.performReservationEndingSequence() // which does some calls etc
  </code></pre>
  
  <p>Is there maybe a <code>completion handler</code> for <code>performSegue</code> that I am missing? I've been searching but I cannot find this specific question.</p>