attributedPlaceholder
The styled string that displays when there is no other text in the text field.
Declaration
@NSCopying var attributedPlaceholder: NSAttributedString? { get set }Discussion
This property is nil by default. If set, the placeholder string is drawn using system-defined color and the remaining style information (except the text color) of the attributed string. Assigning a new value to this property also replaces the value of the placeholder property with the same string data, albeit without any formatting information. Assigning a new value to this property does not affect any other style-related properties of the text field.