I'm still a novice for the most part and the code I'm working with is part of a company's app that has already been in development for a long time. I'm still learning and taking on the smaller jobs that can't be actively worked on. I'm still fairly clueless on many subjects. This is code that I have related to the search bar, I need to change the placeholder text color:
func addSearchController() {
// initialize searchResultsController set to nil as we want to use this view controller to display the search results
searchController = UISearchController(searchResultsController: nil)
searchController.searchResultsUpdater = self
searchController.dimsBackgroundDuringPresentation = false
searchController.searchBar.sizeToFit()
searchController.searchBar.tintColor = .white
searchController.searchBar.barTintColor = .ocTopGreen()
searchController.searchBar.searchTextField.textColor = .white
searchController.searchBar.placeholder = "Search for a symptom"
tableView.tableHeaderView = searchController.searchBar
}
Any assistance would be appreciated.