change placeholder text color in swift code example
Example 1: set white place holder color in swift
placeholderLabel.textColor (Swift 4)
_placeholderLabel.textColor (Swift 3 or less)
Example 2: swift uitextfield placeholder color
myTextField.attributedPlaceholder = NSAttributedString(string: "placeholder text",
attributes: [NSAttributedString.Key.foregroundColor: UIColor.white])