---
title: variant
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/locale/components/variant
---

# variant

An optional variant used by the locale.

## Declaration

```swift
var variant: Locale.Variant?
```

## Discussion

Discussion Set this property to override the variant of the locale. This property corresponds to the va key of the Unicode BCP 47 extension.

## See Also

### Specifying region components

- [region](foundation/locale/components/region.md)
- [Locale.Region](foundation/locale/region-swift.struct.md)
- [subdivision](foundation/locale/components/subdivision.md)
- [Locale.Subdivision](foundation/locale/subdivision-swift.struct.md)
- [Locale.Variant](foundation/locale/variant-swift.struct.md)
