diff --git a/SignalUI/ViewControllers/OWSNavigationController.swift b/SignalUI/ViewControllers/OWSNavigationController.swift index df3fb33e1d..9ee68b6098 100644 --- a/SignalUI/ViewControllers/OWSNavigationController.swift +++ b/SignalUI/ViewControllers/OWSNavigationController.swift @@ -218,6 +218,10 @@ extension OWSNavigationController: UIGestureRecognizerDelegate { public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool { owsAssertDebug(gestureRecognizer === self.interactivePopGestureRecognizer) + guard viewControllers.count > 1 else { + return false + } + if let child = topViewController?.getFinalNavigationChildController() { return !child.shouldCancelNavigationBack } else {