How to dynamically change placeholder color of the UITextField? This is always the same system color.
UITextField
No option in xib editor.
Swift 4
let placeholderColor = UIColor.red self.passwordTextField?.attributedPlaceholder = NSAttributedString(string:"placeholderText", attributes: [NSAttributedStringKey.foregroundColor : placeholderColor])