From c08d73523cdea9359ba9e875d612269c215b445f Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Wed, 1 Feb 2017 22:43:05 +0800 Subject: [PATCH] hide search bar by default --- pass/PasswordsTableViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pass/PasswordsTableViewController.swift b/pass/PasswordsTableViewController.swift index 17a3b51..ccea773 100644 --- a/pass/PasswordsTableViewController.swift +++ b/pass/PasswordsTableViewController.swift @@ -44,7 +44,8 @@ class PasswordsTableViewController: UITableViewController { searchController.dimsBackgroundDuringPresentation = false definesPresentationContext = true tableView.tableHeaderView = searchController.searchBar -// tableView.scrollToRow(at: IndexPath(row: 0, section: 0), at: UITableViewScrollPosition.top, animated: false) + tableView.setContentOffset(CGPoint(x: 0, y: 44), animated: false) + } func filterContentForSearchText(searchText: String, scope: String = "All") {