From 9bbb103ca9a6a07a4ba393a4cb5af395ce0035b1 Mon Sep 17 00:00:00 2001 From: Pierre FILSTROFF Date: Fri, 13 Sep 2024 10:23:56 +0200 Subject: [PATCH] Avoid popping the view controller on refresh if the presentedViewController is nil --- Source/Turbo Navigator/TurboNavigationHierarchyController.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/Turbo Navigator/TurboNavigationHierarchyController.swift b/Source/Turbo Navigator/TurboNavigationHierarchyController.swift index 0a1995e..7e40c4e 100644 --- a/Source/Turbo Navigator/TurboNavigationHierarchyController.swift +++ b/Source/Turbo Navigator/TurboNavigationHierarchyController.swift @@ -174,7 +174,6 @@ class TurboNavigationHierarchyController { refreshIfTopViewControllerIsVisitable(from: .modal) } } else { - navigationController.popViewController(animated: proposal.animated) refreshIfTopViewControllerIsVisitable(from: .main) } }