self.setValue(placeHolderColor, forKeyPath: "_placeholderLabel.textColor")
in ios13 its crashed.how to set placeholderColor to placeholderLabel in swift5 for ios13 in xcode11.
Set color
using attributedPlaceholder
as below,
let colorAttrbs: [NSAttributedString.Key: Any] = [.foregroundColor: UIColor.red]
textField.attributedPlaceholder = NSAttributedString(string: "placeholder", attributes: colorAttrbs)