Commit 450807a1 by Orkhan Alikhanov

Fixed crash on swipe from more tab

parent 1ca76b5d
...@@ -185,6 +185,10 @@ private extension BottomNavigationController { ...@@ -185,6 +185,10 @@ private extension BottomNavigationController {
@objc @objc
func handleSwipeGesture(_ gesture: UISwipeGestureRecognizer) { func handleSwipeGesture(_ gesture: UISwipeGestureRecognizer) {
guard selectedIndex != NSNotFound else {
return
}
switch gesture.direction { switch gesture.direction {
case .right: case .right:
select(at: selectedIndex - 1) select(at: selectedIndex - 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment