---
title: init()
framework: corehaptics
role: symbol
role_heading: Initializer
path: corehaptics/chhapticengine/init()
---

# init()

Creates an instance of the haptic engine.

## Declaration

```swift
init() throws
```

## Discussion

Discussion The haptic engine isn’t a singleton but a connection to the haptic server inside the user’s device. More than one connection with the haptic server may exist in your app’s view controller or delegate. Each connection functions independently of the others.

## See Also

### Initializing a Haptic Engine

- [init(audioSession:)](corehaptics/chhapticengine/init(audiosession:).md)
