             view.addSubview(searchBarView!)
         }
         navigationItem.title = "PasswordStore".localize()
+        tapNavigationBarGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didTapNavigationBar))
+
         tableView.refreshControl = syncControl
         SVProgressHUD.setDefaultMaskType(.black)
         tableView.register(UINib(nibName: "PasswordWithFolderTableViewCell", bundle: nil), forCellReuseIdentifier: "passwordWithFolderTableViewCell")

        self.view.addGestureRecognizer(swipeRight)
    }

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        tabBarController!.delegate = self
        if let path = tableView.indexPathForSelectedRow {
            tableView.deselectRow(at: path, animated: false)
        }
    }

    override func viewWillLayoutSubviews() {

            if #available(iOS 11, *) {
                navigationController?.navigationBar.prefersLargeTitles = false
            }
            self.navigationController?.navigationBar.removeGestureRecognizer(tapNavigationBarGestureRecognizer)
        } else {
            navigationItem.leftBarButtonItem = nil
            switch label {
            case .all:
                navigationItem.title = "PasswordStore".localize()
            case .unsynced:
                navigationItem.title = "Unsynced"
            }
            if #available(iOS 11, *) {
                navigationController?.navigationBar.prefersLargeTitles = true
            }
            self.navigationController?.navigationBar.addGestureRecognizer(tapNavigationBarGestureRecognizer)
        }
        navigationItem.rightBarButtonItem = addPasswordUIBarButtonItem

