Contents

textColor

The color of the text.

Declaration

var textColor: UIColor? { get set }

Discussion

This property applies to the entire text string. The default text color is black.

In iOS 6 and later, assigning a new value to this property causes the new text color to be applied to the entire contents of the text view. If you want to apply the color to only a portion of the text, you must create a new attributed string with the desired style information and assign it to the attributedText property.

See Also

Related Documentation

Configuring appearance attributes