---
title: "init(rawValue:)"
framework: Core Haptics
role: symbol
role_heading: Initializer
platforms: [iOS 13.0+, iPadOS 13.0+, Mac Catalyst 13.1+, macOS 10.15+, tvOS 14.0+, visionOS 1.0+]
path: "corehaptics/chhapticerror/code/init(rawvalue:)"
---

# init(rawValue:)

## Declaration

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