From ac7296f75c4c4de9112e7785a627bf6ffeab8076 Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Sun, 24 Sep 2017 23:49:16 -0700 Subject: [PATCH] Change search bar height --- pass/Controllers/PasswordsViewController.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pass/Controllers/PasswordsViewController.swift b/pass/Controllers/PasswordsViewController.swift index 52b8dbc..b7ca354 100644 --- a/pass/Controllers/PasswordsViewController.swift +++ b/pass/Controllers/PasswordsViewController.swift @@ -49,7 +49,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV return syncControl }() private lazy var searchBarView: UIView = { - let uiView = UIView(frame: CGRect(x: 0, y: 64, width: self.view.bounds.width, height: 44)) + let uiView = UIView(frame: CGRect(x: 0, y: 64, width: self.view.bounds.width, height: 56)) uiView.addSubview(self.searchController.searchBar) return uiView }() @@ -221,9 +221,9 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV } } - override func viewDidLayoutSubviews() { - super.viewDidLayoutSubviews() - searchBarView.frame = CGRect(x: 0, y: navigationController!.navigationBar.bounds.size.height + UIApplication.shared.statusBarFrame.height, width: UIScreen.main.bounds.width, height: 44) + override func viewWillLayoutSubviews() { + super.viewWillLayoutSubviews() + searchBarView.frame = CGRect(x: 0, y: navigationController!.navigationBar.bounds.size.height + UIApplication.shared.statusBarFrame.height, width: UIScreen.main.bounds.width, height: 56) searchController.searchBar.sizeToFit() }