Post

Replies

Boosts

Views

Activity

UISearchController set Search Text to .white not working in ViewDidLoad?
Does anyone know why setting the text color of the search bar programmatically in viewDidLoad does not work and is requiring setting it to .white in viewWillAppear? var searchController = UISearchController(searchResultsController: nil) searchController.searchBar.delegate = self searchController.searchBar.sizeToFit() searchController.obscuresBackgroundDuringPresentation = false searchController.hidesNavigationBarDuringPresentation = false searchController.searchBar.placeholder = "Search here" searchController.searchBar.searchTextField.textColor = .white self.navigationItem.searchController = searchController
0
0
728
May ’22
Xcode 10 Compile time Slow
Has anyone else noticed how slow xCode 10 is now in compiling code. It used to take 20 second to build and run. Now the same exact code takes over 45 seconds and sometimes over a minute to comple and run vs xCode9
Replies
5
Boosts
0
Views
8.3k
Activity
Oct ’23
UISearchController set Search Text to .white not working in ViewDidLoad?
Does anyone know why setting the text color of the search bar programmatically in viewDidLoad does not work and is requiring setting it to .white in viewWillAppear? var searchController = UISearchController(searchResultsController: nil) searchController.searchBar.delegate = self searchController.searchBar.sizeToFit() searchController.obscuresBackgroundDuringPresentation = false searchController.hidesNavigationBarDuringPresentation = false searchController.searchBar.placeholder = "Search here" searchController.searchBar.searchTextField.textColor = .white self.navigationItem.searchController = searchController
Replies
0
Boosts
0
Views
728
Activity
May ’22