---
title: "init(rawValue:)"
framework: corehaptics
role: symbol
role_heading: Initializer
path: "corehaptics/chhapticpattern/key/init(rawvalue:)"
---

# init(rawValue:)

Creates a pattern key with a string.

## Declaration

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

## Parameters

- `rawValue`: The raw string value.
