From 7afcf681fecc12a1bb2e4f5a987d58eed8962ab6 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Tue, 21 Apr 2020 01:52:39 -0500 Subject: [PATCH] Stablize swipe back gesture for timeline. Issue #2002 --- iOS/UIKit Extensions/PoppableGestureRecognizerDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/UIKit Extensions/PoppableGestureRecognizerDelegate.swift b/iOS/UIKit Extensions/PoppableGestureRecognizerDelegate.swift index fa9cda81e..8df7295bd 100644 --- a/iOS/UIKit Extensions/PoppableGestureRecognizerDelegate.swift +++ b/iOS/UIKit Extensions/PoppableGestureRecognizerDelegate.swift @@ -18,7 +18,7 @@ final class PoppableGestureRecognizerDelegate: NSObject, UIGestureRecognizerDele } func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool { - return true + return navigationController?.viewControllers.count ?? 0 > 2 } }