          On iOS13+, it is possible to swipe down on presented view controller to dismiss.
          In this case, we need to notify the delegate.
          */
-        if #available(iOS 13.0, *) {
-            notifyDelegate()
+        if #available(iOS 13.0, *), isBeingDismissed {
+            manuallyCloseWebFlowViewController()
         }
     }
 }

private extension FinancialConnectionsWebFlowViewController {

    @objc
    func didTapTryAgainButton() {
        fetchSession()
    }

    @objc
    func didTapClose() {
        notifyDelegate()
    }
}

                self.loadingView.activityIndicatorView.stp_stopAnimatingAndHide()
                switch result {
                case .success(let session):
                    self.notifyDelegate(result: .completed(session: session))
                case .failure(let error):
                    self.loadingView.errorView.isHidden = false
                    self.fetchSessionError = error
                }
            }
    }
