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

# init(rawValue:)

Creates a custom state key with the specified raw value.

## Declaration

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

## See Also

### Creating a custom state key

- [init(_:)](uikit/uiconfigurationstatecustomkey/init(_:).md)
