swift uitextview placeholder code example
Example 1: swift uitextfield placeholder color
myTextField.attributedPlaceholder = NSAttributedString(string: "placeholder text",
attributes: [NSAttributedString.Key.foregroundColor: UIColor.white])
Example 2: uitextview set placeholder text swift 5
textView.text = "Placeholder"
textView.textColor = UIColor.lightGray