From a8b74f16e45b255132ff25d10159a900b8fcbf7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=9F=E3=81=A4=E3=81=9D=E3=82=99=E3=81=86?= Date: Sun, 28 Nov 2021 18:09:19 +0900 Subject: [PATCH] fix: Slide menu cannot be swiped out --- .github/workflows/deploy.yml | 2 +- EhPanda/App/Extensions.swift | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a81bfd84..59311939 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,7 +6,7 @@ on: types: [closed] env: DEVELOPER_DIR: /Applications/Xcode_13.1.app - APP_VERSION: '1.5.0' + APP_VERSION: '1.5.1' SCHEME_NAME: 'EhPanda' ALTSTORE_JSON_PATH: './AltStore.json' BUILDS_PATH: '/tmp/action-builds' diff --git a/EhPanda/App/Extensions.swift b/EhPanda/App/Extensions.swift index 6a415da4..4bf925bf 100644 --- a/EhPanda/App/Extensions.swift +++ b/EhPanda/App/Extensions.swift @@ -14,6 +14,10 @@ extension UINavigationController: UIGestureRecognizerDelegate { super.viewDidLoad() interactivePopGestureRecognizer?.delegate = self } + // Prevents above codes from blocking the slide menu + public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool { + viewControllers.count > 1 + } // Gives the swipe-back gesture a higher priority public func gestureRecognizer( _ gestureRecognizer: UIGestureRecognizer,