variantCode

Returns the variant code for the locale, or nil if it has none.

iOS
deprecated
macOS
deprecated
tvOS
deprecated
watchOS
deprecated
var variantCode: String? { get }

For example, for the locale “en_POSIX”, returns “POSIX”.