Skip to content

Commit

Permalink
Fix navigation bar tap gesture issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mssun committed Jan 6, 2022
1 parent 819371f commit 7a144c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pass/Controllers/PasswordNavigationViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class PasswordNavigationViewController: UIViewController {
configureTableView(in: parentPasswordEntity)
configureNotification()
configureSearchBar()
configureNavigationBar()
requestNotificationPermission()
}

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 7a144c7

Please sign in to comment.