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

# init(controlPoints:creationDate:)

Creates a stroke path with the cubic B-spline control points and a date that you specify.

## Declaration

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

## Parameters

- `controlPoints`: An array of control points for a cubic B-spline.
- `creationDate`: The creation time of this path. The timeOffset of points in this stroke path is relative to this date.
