Contents

description

A textual representation of the color.

Declaration

var description: String { get }

Discussion

Use this method to get a string that represents the color. The print(_:separator:terminator:) function uses this property to get a string representing an instance:

print(Color.red)
// Prints "red"