---
title: "init(controlPoints:creationDate:strokePathID:)"
framework: pencilkit
role: symbol
role_heading: Initializer
path: "pencilkit/pkstrokepathreference/init(controlpoints:creationdate:strokepathid:)"
---

# init(controlPoints:creationDate:strokePathID:)

Creates a stroke path with the specified control points and a unique identifier.

## Declaration

```swift
convenience init(controlPoints: [PKStrokePoint], creationDate: Date, strokePathID: UUID)
```

## Parameters

- `controlPoints`: An array of control points for a cubic B-spline.
- `creationDate`: The start time of this path.
- `strokePathID`: The unique identity of the stroke path.

## Discussion

Discussion warning: Using multiple stroke paths with identical IDs but different control points will result in undefined rendering behavior. Ensure each stroke path has a unique identifier.
