From f7a348a8b0261bf8e790a2ad2d4ccd9d7ec9f922 Mon Sep 17 00:00:00 2001 From: "Hedden, Kyle Matthew" Date: Tue, 23 Apr 2024 19:02:05 -0400 Subject: [PATCH] Digital PCT265 defect PRODDEF-28200 - Prevent navigation to the same controller fixing hang ups. --- MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift b/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift index ad3e37d..a6aa16c 100644 --- a/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift +++ b/MVMCore/MVMCore/PresentationHandling/NavigationOperation.swift @@ -110,7 +110,8 @@ open class NavigationOperation: MVMCoreOperation, UINavigationControllerDelegate */ @MainActor open func set(viewControllers: [UIViewController], navigationController: UINavigationController, animated: Bool) { - guard viewControllers.count > 0 else { + guard viewControllers.count > 0, + navigationController.viewControllers != viewControllers else { // If the controller stack is the same, iOS will not call the delegate method of the change, causing the operation to hang. markAsFinished() return }