The styled string that is displayed when there is no other text in the text field.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
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.