Instance Property インスタンスプロパティ

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"