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

# init(rawValue:)

Creates a new instance with the given raw value.

## Declaration

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

## Parameters

- `rawValue`: The value of the key.
