         // Make sure it's not a tap on the dialog but the background
         let point = sender.location(in: popupContainerView.stackView)
         guard !popupContainerView.stackView.point(inside: point, with: nil) else { return }
-        dismiss(self.completion)
-    }
-
-    func interactiveTransitionDidDismissViewController() {
-        self.completion?()
+        dismiss()
     }
 
     /*!

    fileprivate var presentationManager: PresentationManager!

    /// Interactor class for pan gesture dismissal
    fileprivate lazy var interactor: InteractiveTransition = {
        let interactor = InteractiveTransition()
        interactor.delegate = self
       return interactor
    }()

    /// Returns the controllers view
    internal var popupContainerView: PopupDialogContainerView {

import UIKit

/// Creates a Popup dialog similar to UIAlertController
final public class PopupDialog: UIViewController {

    // MARK: Private / Internal

