---
title: "init(rawValue:)"
framework: packagedescription
role: symbol
role_heading: Initializer
path: "packagedescription/languagetag/init(rawvalue:)"
---

# init(rawValue:)

Creates a new instance with the specified raw value.

## Declaration

```swift
init?(rawValue: String)
```

## Parameters

- `rawValue`: The raw value to use for the new instance.

## Discussion

Discussion If there is no value of the type that corresponds with the specified raw value, this initializer returns nil.

## See Also

### Creating a Language Tag

- [init(extendedGraphemeClusterLiteral:)](packagedescription/languagetag/init(extendedgraphemeclusterliteral:).md)
- [init(stringLiteral:)](packagedescription/languagetag/init(stringliteral:).md)
- [init(unicodeScalarLiteral:)](packagedescription/languagetag/init(unicodescalarliteral:).md)
