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