Trying to get the left most image icon within the search bar to change color for Dark Mode in iOS 13
Ive tried making a call directly to the searchBar and changing its background color, changing the text color, and finally I've tried a couple different iterations of the code below.
searchBar.backgroundColor = .clear
searchBar.backgroundImage = UIImage(named: "magnifyingglass")
if #available(iOS 13, *) {
searchBar.textField?.attributedPlaceholder =
NSAttributedString(string: (" " + NSLocalizedString("search_actions", comment: "")),
attributes: [NSAttributedString.Key.foregroundColor: UIColor.separator,
NSAttributedString.Key.strokeColor: UIColor.separator])
}