---
title: variantCode
framework: corefoundation
role: symbol
role_heading: Type Property
path: corefoundation/cflocalekey/variantcode
---

# variantCode

Specifies the locale variant code.

## Declaration

```swift
static let variantCode: CFLocaleKey!
```

## Discussion

Discussion The corresponding value is a CFString containing the variant name. The variant code is arbitrary and application-specific. ICU adds “_EURO”  to its locale designations for locales that support the Euro currency. For  “en_US_POSIX” the variant is “POSIX”, and for “hy_AM_REVISED” it is “REVISED”.

## See Also

### Constants

- [identifier](corefoundation/cflocalekey/identifier.md)
- [languageCode](corefoundation/cflocalekey/languagecode.md)
- [countryCode](corefoundation/cflocalekey/countrycode.md)
- [scriptCode](corefoundation/cflocalekey/scriptcode.md)
- [exemplarCharacterSet](corefoundation/cflocalekey/exemplarcharacterset.md)
- [calendarIdentifier](corefoundation/cflocalekey/calendaridentifier.md)
- [calendar](corefoundation/cflocalekey/calendar.md)
- [collationIdentifier](corefoundation/cflocalekey/collationidentifier.md)
- [usesMetricSystem](corefoundation/cflocalekey/usesmetricsystem.md)
- [measurementSystem](corefoundation/cflocalekey/measurementsystem.md)
- [decimalSeparator](corefoundation/cflocalekey/decimalseparator.md)
- [groupingSeparator](corefoundation/cflocalekey/groupingseparator.md)
- [currencySymbol](corefoundation/cflocalekey/currencysymbol.md)
- [currencyCode](corefoundation/cflocalekey/currencycode.md)
- [collatorIdentifier](corefoundation/cflocalekey/collatoridentifier.md)
