Instance Property

description

The value of this string.

Declaration

var description: String { get }

Discussion

Using this property directly is discouraged. Instead, use simple assignment to create a new constant or variable equal to this string.

Relationships

See Also

Describing a String

var debugDescription: String

A representation of the string that is suitable for debugging.

var customMirror: Mirror

A mirror that reflects the String instance.

var hashValue: Int

The hash value.

func hash(into: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.