<!--
{
  "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/PKStrokePath-swift.struct/init(controlPoints:creationDate:id:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "s:9PencilKit12PKStrokePathV13controlPoints12creationDate2idACx_10Foundation0H0VAG4UUIDVtcSTRzAA0C5PointV7ElementRtzlufc"
  },
  "title" : "init(controlPoints:creationDate:id:)"
}
-->

# init(controlPoints:creationDate:id:)

Creates a stroke path with the specified cubic B-spline control points and a unique identifier.

```
init<T>(controlPoints: T, creationDate: Date, id: UUID) where T : Sequence, T.Element == PKStrokePoint
```

## Parameters

`controlPoints`

An array of control points for a cubic B-spline.

`creationDate`

The start time of this path.

`id`

The unique identity of the 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)