title: Get notified of dismissed PopupDialog in view controller
body: <p>I have a project that is making use of <a href="https://github.com/Orderella/PopupDialog" rel="nofollow noreferrer">https://github.com/Orderella/PopupDialog</a> for popup dialogs which works very well.</p>
  
  <p>A dialog is created an presenting like:</p>
  
  <pre><code>let ratingVC = PopupViewController(nibName: "PopupViewController", bundle: nil)
          ratingVC.apiKey = self.apiKey
          ratingVC.accountNumberString = accountNumberString        
  
          let popup = PopupDialog(viewController: ratingVC, buttonAlignment: .horizontal, transitionStyle: .bounceDown, gestureDismissal: true)
          ratingVC.presentedPopup = popup
  self.present(popup, animated: true, completion: nil)
  </code></pre>
  
  <p>Which allows for custom view controller work within the popup. Within the <code>PopupViewController</code> the PopupDialog might get dismissed using <code>self.dismiss(animated: true)</code></p>
  
  <p>This works well however I'm not sure how the launching view controller (where self.present is run) would get notified that the PopupDialog has been dismissed.</p>
  
  <p>I have tried </p>
  
  <pre><code>override func dismiss(animated flag: Bool, completion: (() -&gt; Void)?)
      {
          super.dismiss(animated: flag, completion:completion)
  
      }
  </code></pre>
  
  <p>In the launching view controller but this doesn't get called.</p>