---
title: "init(events:parameterCurves:)"
framework: corehaptics
role: symbol
role_heading: Initializer
path: "corehaptics/chhapticpattern/init(events:parametercurves:)"
---

# init(events:parameterCurves:)

Constructs a haptic pattern from a series of events and parameter curves.

## Declaration

```swift
init(events: [CHHapticEvent], parameterCurves: [CHHapticParameterCurve]) throws
```

## Parameters

- `events`: An array of events that make up the haptic pattern.
- `parameterCurves`: An array of parameter curves that define how the haptic pattern’s parameters change over time.

## See Also

### Creating a Haptic Pattern

- [init(contentsOf:)](corehaptics/chhapticpattern/init(contentsof:).md)
- [init(events:parameters:)](corehaptics/chhapticpattern/init(events:parameters:).md)
- [init(dictionary:)](corehaptics/chhapticpattern/init(dictionary:).md)
- [CHHapticPattern.Key](corehaptics/chhapticpattern/key.md)
