Fix navigation bar tap gesture issue
This commit is contained in:
parent
819371f55e
commit
7a144c77da
1 changed files with 2 additions and 1 deletions
|
|
@ -74,6 +74,7 @@ class PasswordNavigationViewController: UIViewController {
|
|||
configureTableView(in: parentPasswordEntity)
|
||||
configureNotification()
|
||||
configureSearchBar()
|
||||
configureNavigationBar()
|
||||
requestNotificationPermission()
|
||||
}
|
||||
|
||||
|
|
@ -206,7 +207,7 @@ class PasswordNavigationViewController: UIViewController {
|
|||
func didTapNavigationBar(_ sender: UITapGestureRecognizer) {
|
||||
let location = sender.location(in: navigationController?.navigationBar)
|
||||
let hitView = navigationController?.navigationBar.hitTest(location, with: nil)
|
||||
guard !(hitView is UIControl) else {
|
||||
guard String(describing: hitView).contains("UINavigationBarContentView") else {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue