mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix accessibility swipe back gesture
This commit is contained in:
parent
adae15d010
commit
96abae091a
@ -99,8 +99,11 @@ private final class NavigationControllerNode: ASDisplayNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override func accessibilityPerformEscape() -> Bool {
|
override func accessibilityPerformEscape() -> Bool {
|
||||||
let _ = self.controller?.popViewController(animated: true)
|
if let controller = self.controller, controller.viewControllers.count > 1 {
|
||||||
return true
|
let _ = self.controller?.popViewController(animated: true)
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user