variant
An optional variant used by the locale.
Declaration
var variant: Locale.Variant? { get }Discussion
This property corresponds to the va key of the Unicode BCP 47 extension.
For locale instances created with the va specifier (such as en-US@va=posix), or with a custom Locale.Components, this property represents the custom variant. Otherwise, it represents the locale’s default variant.