title: Is there a way to change a UITextField's cursor color other than .tintColor?
body: <p>Basically, my goal is to have UISearchBarIcon.search be one color, and the cursor color be another. Since I have a dark and a light theme in my app I'm using alwaysTemplate for the UIImage for the search icon.</p>
  
  <p>Found something about using this:
  (textFieldInsideSearchBar?.value(forKey: "textInputTraits") as! String)["insertionPointColor"] = UIColor.red</p>
  
  <p>But that doesn't seem to be valid as I get "Cannot subscript a value of type 'String' with an index of type 'String'" in Xcode</p>