Skip to content

Commit 43e1883

Browse files
authored
[PM-16213] feat: Reduce the required fingers to open the debug menu to 1 (#966)
1 parent 6c6c3ed commit 43e1883

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Bitwarden/Application/SceneDelegate.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
5050
window = appWindow
5151

5252
#if DEBUG_MENU
53-
addTripleTapGestureRecognizer(to: appWindow)
53+
addTapGestureRecognizer(to: appWindow)
5454
#endif
5555

5656
// Splash window. This is initially visible until the app's processor has finished starting.
@@ -153,22 +153,22 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
153153
}
154154

155155
#if DEBUG_MENU
156-
/// Handle the triple-tap gesture and launch the debug menu.
156+
/// Handle the tap gesture and launch the debug menu.
157157
@objc
158-
private func handleTripleTapGesture() {
158+
private func handleTapGesture() {
159159
appProcessor?.showDebugMenu()
160160
}
161161
#endif
162162

163163
#if DEBUG_MENU
164-
/// Add the triple-tap gesture recognizer to the window.
165-
private func addTripleTapGestureRecognizer(to window: UIWindow) {
164+
/// Add the tap gesture recognizer to the window.
165+
private func addTapGestureRecognizer(to window: UIWindow) {
166166
let tapGesture = UITapGestureRecognizer(
167167
target: self,
168-
action: #selector(handleTripleTapGesture)
168+
action: #selector(handleTapGesture)
169169
)
170170
tapGesture.numberOfTapsRequired = 3
171-
tapGesture.numberOfTouchesRequired = 3
171+
tapGesture.numberOfTouchesRequired = 1
172172
window.addGestureRecognizer(tapGesture)
173173
}
174174
#endif

0 commit comments

Comments
 (0)