can I change the color of the clearButtonMode on a textField?
theTextField.clearButtonMode = UITextFieldViewModeWhileEditing
shows an x tha
At the time you're configuring the textField, use:
let clearButton : UIButton = textField.value(forKey: "_clearButton") as! UIButton let image = UIImage(named: "ClearWhite") clearButton.setImage(image, for: .normal) clearButton.backgroundColor = UIColor.clear