Contents

collationIdentifier

The collation identifier for the locale.

Declaration

var collationIdentifier: String? { get }

Discussion

Example collation identifiers include "phonebook" and "pinyin".

Use localizedString(forCollationIdentifier:) to obtain a version of the value suitable for display to the user.

This property contains the same value returned by the object(forKey:) method when passing the collationIdentifier key.

See Also

Getting Information About a Locale