From 78205bf4575899237c3c3772498cf6bf80522c1c Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Mon, 21 Oct 2024 13:40:04 -0700 Subject: [PATCH] wip --- .../UIKitNavigation/Navigation/NavigationStackController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/UIKitNavigation/Navigation/NavigationStackController.swift b/Sources/UIKitNavigation/Navigation/NavigationStackController.swift index 367ca3bab..090d3c5be 100644 --- a/Sources/UIKitNavigation/Navigation/NavigationStackController.swift +++ b/Sources/UIKitNavigation/Navigation/NavigationStackController.swift @@ -411,6 +411,7 @@ } public func navigationBar(_ navigationBar: UINavigationBar, didPop item: UINavigationItem) { + guard !elementsBeingPopped.isEmpty else { return } path.removeAll(where: { elementsBeingPopped.contains($0) }) elementsBeingPopped.removeAll() }