<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHaptics",
  "identifier" : "/documentation/CoreHaptics/CHHapticPattern/init(events:parameters:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Haptics"
    ],
    "preciseIdentifier" : "c:objc(cs)CHHapticPattern(im)initWithEvents:parameters:error:"
  },
  "title" : "init(events:parameters:)"
}
-->

# init(events:parameters:)

Constructs a haptic pattern from a series of events and parameters.

```
init(events: [CHHapticEvent], parameters: [CHHapticDynamicParameter]) throws
```

## Parameters

`events`

An array of events that make up the haptic pattern.

`parameters`

An array of dynamic parameters that define how the haptic pattern’s parameters change over time.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)