---
title: Locale.Variant
framework: foundation
role: symbol
role_heading: Structure
path: foundation/locale/variant-swift.struct
---

# Locale.Variant

A type that represents a locale’s language variant.

## Declaration

```swift
struct Variant
```

## Overview

Overview This type corresponds to the Unicode variant subtag, such as posix.

## Topics

### Creating a variant

- [init(_:)](foundation/locale/variant-swift.struct/init(_:).md)
- [init(stringLiteral:)](foundation/locale/variant-swift.struct/init(stringliteral:).md)

### Examining variant properties

- [identifier](foundation/locale/variant-swift.struct/identifier.md)

### Using defined variants

- [posix](foundation/locale/variant-swift.struct/posix.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByExtendedGraphemeClusterLiteral](swift/expressiblebyextendedgraphemeclusterliteral.md)
- [ExpressibleByStringLiteral](swift/expressiblebystringliteral.md)
- [ExpressibleByUnicodeScalarLiteral](swift/expressiblebyunicodescalarliteral.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting region components

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