Instance Property

description

A string that represents the contents of the dictionary, formatted as a property list.

Declaration

var description: String { get }

Discussion

If each key in the dictionary is an NSString object, the entries are listed in ascending order by key, otherwise the order in which the entries are listed is undefined. This property is intended to produce readable output for debugging purposes, not for serializing data. If you want to store dictionary data for later retrieval, see Property List Programming Guide and Archives and Serializations Programming Guide.

See Also

Describing a Dictionary

var descriptionInStringsFileFormat: String

A string that represents the contents of the dictionary, formatted in .strings file format.

func description(withLocale: Any?) -> String

Returns a string object that represents the contents of the dictionary, formatted as a property list.

func description(withLocale: Any?, indent: Int) -> String

Returns a string object that represents the contents of the dictionary, formatted as a property list.

var customMirror: Mirror

A mirror that reflects the dictionary.