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

# init(controlPoints:creationDate:strokePathID:)

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

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

---

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)