Skip to content

Commit a1b4988

Browse files
committed
force text to be white on ios12 in search text fields
1 parent 1a622ca commit a1b4988

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Mage/EventChooserController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ - (void) themeDidChange:(MageTheme)theme {
8282

8383
if (@available(iOS 13.0, *)) {
8484
self.searchController.searchBar.searchTextField.backgroundColor = [[UIColor background] colorWithAlphaComponent:.87];
85+
} else {
86+
[[UITextField appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]] setTextColor:[UIColor navBarPrimaryText]];
8587
}
8688

8789
[self.tableView reloadData];

0 commit comments

Comments
 (0)