Skip to content

Commit 7a144c7

Browse files
committed
Fix navigation bar tap gesture issue
1 parent 819371f commit 7a144c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pass/Controllers/PasswordNavigationViewController.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class PasswordNavigationViewController: UIViewController {
7474
configureTableView(in: parentPasswordEntity)
7575
configureNotification()
7676
configureSearchBar()
77+
configureNavigationBar()
7778
requestNotificationPermission()
7879
}
7980

@@ -206,7 +207,7 @@ class PasswordNavigationViewController: UIViewController {
206207
func didTapNavigationBar(_ sender: UITapGestureRecognizer) {
207208
let location = sender.location(in: navigationController?.navigationBar)
208209
let hitView = navigationController?.navigationBar.hitTest(location, with: nil)
209-
guard !(hitView is UIControl) else {
210+
guard String(describing: hitView).contains("UINavigationBarContentView") else {
210211
return
211212
}
212213

0 commit comments

Comments
 (0)