BF: Fix crash for earch bar customisation in iOS13

#2626
This commit is contained in:
manuroe
2019-08-07 18:35:54 +02:00
parent 11fda88502
commit 61509528c4
6 changed files with 11 additions and 6 deletions
@@ -628,7 +628,7 @@
// FIXME: this all seems incredibly fragile and tied to gutwrenching the current UISearchBar internals.
// text color
UITextField *searchBarTextField = [searchBar valueForKey:@"_searchField"];
UITextField *searchBarTextField = searchBar.vc_searchTextField;
searchBarTextField.textColor = ThemeService.shared.theme.textSecondaryColor;
// Magnifying glass icon.