---
title: "init(controlPoints:creationDate:)"
framework: pencilkit
role: symbol
role_heading: Initializer
path: "pencilkit/pkstrokepath-swift.struct/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<T>(controlPoints: T, creationDate: Date) where T : Sequence, T.Element == PKStrokePoint
```

## 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.

## See Also

### Creating a new stroke path

- [init()](pencilkit/pkstrokepath-swift.struct/init().md)
- [init(controlPoints:creationDate:id:)](pencilkit/pkstrokepath-swift.struct/init(controlpoints:creationdate:id:).md)
- [init(bezierPath:creationDate:pointProvider:)](pencilkit/pkstrokepath-swift.struct/init(bezierpath:creationdate:pointprovider:).md)
- [PKStrokePath.ConvertedBezierPoint](pencilkit/pkstrokepath-swift.struct/convertedbezierpoint.md)
