<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKStrokePathReference/init(controlPoints:creationDate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PKStrokePath(im)initWithControlPoints:creationDate:"
  },
  "title" : "init(controlPoints:creationDate:)"
}
-->

# init(controlPoints:creationDate:)

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

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

## Discussion

---

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)