Returns a string that represents the contents of the ordered set, formatted as a property list.
SDKs
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
func description(withLocale locale: Any?) -> String
Parameters
locale
An
NSLocale
object or anNSDictionary
object that specifies options used for formatting each of the ordered set’s elements (where recognized). Specifynil
if you don’t want the elements formatted.
Return Value
A string that represents the contents of the ordered set, formatted as a property list.
Discussion
For a description of how locale is applied to each element in the receiving ordered set, see description(with
.