From e5b95a79c3d503f4715f99682ca2ecccc12d5299 Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Tue, 7 Feb 2017 17:24:23 +0800 Subject: [PATCH] make search bar not translucent --- pass/PasswordsViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pass/PasswordsViewController.swift b/pass/PasswordsViewController.swift index 16bf328..2c8eeb7 100644 --- a/pass/PasswordsViewController.swift +++ b/pass/PasswordsViewController.swift @@ -62,6 +62,8 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV tableView.dataSource = self searchController.searchResultsUpdater = self searchController.dimsBackgroundDuringPresentation = false + searchController.searchBar.isTranslucent = false + searchController.searchBar.backgroundColor = UIColor.gray searchController.searchBar.sizeToFit() definesPresentationContext = true searchBarView.addSubview(searchController.searchBar)