Contents

variantCode

The variant code for the locale.

Declaration

var variantCode: String? { get }

Discussion

Examples of variant code include "POSIX" and "PREEURO".

Use localizedString(forVariantCode:) 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 variantCode key.

See Also

Getting Information About a Locale