From f41a3ba056e6d66883a9f92e51baecefcb17db0b Mon Sep 17 00:00:00 2001 From: Indigo Tech Date: Mon, 13 May 2024 19:18:09 -0500 Subject: [PATCH] Remove empty view controller when intercepting unauthorized requests --- Demo/SceneController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Demo/SceneController.swift b/Demo/SceneController.swift index 711b541..bfa2eb1 100644 --- a/Demo/SceneController.swift +++ b/Demo/SceneController.swift @@ -36,6 +36,7 @@ final class SceneController: UIResponder { // MARK: - Authentication private func promptForAuthentication() { + navigationController.popViewController(animated: false) let authURL = rootURL.appendingPathComponent("/signin") let properties = pathConfiguration.properties(for: authURL) navigationController.route(url: authURL, options: VisitOptions(), properties: properties)