Fix accessibility swipe back gesture

This commit is contained in:
Ilya Laktyushin 2021-01-06 12:35:31 +03:00
parent adae15d010
commit 96abae091a

View File

@ -99,8 +99,11 @@ private final class NavigationControllerNode: ASDisplayNode {
}
override func accessibilityPerformEscape() -> Bool {
let _ = self.controller?.popViewController(animated: true)
return true
if let controller = self.controller, controller.viewControllers.count > 1 {
let _ = self.controller?.popViewController(animated: true)
return true
}
return false
}
}