From 7bcd7bab24e49632d505b293d85331ae06a708d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lison=20Fernandes?= Date: Tue, 24 Sep 2024 16:44:24 +0100 Subject: [PATCH] Reduced debug menu tap gesture to 1 --- Bitwarden/Application/SceneDelegate.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Bitwarden/Application/SceneDelegate.swift b/Bitwarden/Application/SceneDelegate.swift index c8597368c..4958c7a28 100644 --- a/Bitwarden/Application/SceneDelegate.swift +++ b/Bitwarden/Application/SceneDelegate.swift @@ -50,7 +50,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { window = appWindow #if DEBUG_MENU - addTripleTapGestureRecognizer(to: appWindow) + addTapGestureRecognizer(to: appWindow) #endif // Splash window. This is initially visible until the app's processor has finished starting. @@ -153,22 +153,22 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { } #if DEBUG_MENU - /// Handle the triple-tap gesture and launch the debug menu. + /// Handle the tap gesture and launch the debug menu. @objc - private func handleTripleTapGesture() { + private func handleTapGesture() { appProcessor?.showDebugMenu() } #endif #if DEBUG_MENU - /// Add the triple-tap gesture recognizer to the window. - private func addTripleTapGestureRecognizer(to window: UIWindow) { + /// Add the tap gesture recognizer to the window. + private func addTapGestureRecognizer(to window: UIWindow) { let tapGesture = UITapGestureRecognizer( target: self, - action: #selector(handleTripleTapGesture) + action: #selector(handleTapGesture) ) tapGesture.numberOfTapsRequired = 3 - tapGesture.numberOfTouchesRequired = 3 + tapGesture.numberOfTouchesRequired = 1 window.addGestureRecognizer(tapGesture) } #endif