Change search bar height
This commit is contained in:
parent
8d969adb5c
commit
ac7296f75c
1 changed files with 4 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
|
||||||
return syncControl
|
return syncControl
|
||||||
}()
|
}()
|
||||||
private lazy var searchBarView: UIView = {
|
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)
|
uiView.addSubview(self.searchController.searchBar)
|
||||||
return uiView
|
return uiView
|
||||||
}()
|
}()
|
||||||
|
|
@ -221,9 +221,9 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override func viewDidLayoutSubviews() {
|
override func viewWillLayoutSubviews() {
|
||||||
super.viewDidLayoutSubviews()
|
super.viewWillLayoutSubviews()
|
||||||
searchBarView.frame = CGRect(x: 0, y: navigationController!.navigationBar.bounds.size.height + UIApplication.shared.statusBarFrame.height, width: UIScreen.main.bounds.width, height: 44)
|
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()
|
searchController.searchBar.sizeToFit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue