Fix broken navigation when interactive back swiping on root nav controller
This commit is contained in:
parent
513ba3863d
commit
190c56b68b
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user