<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKStroke-swift.struct/init(ink:path:transform:mask:randomSeed:id:renderGroupID:renderState:)-1qvj7",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "s:9PencilKit8PKStrokeV3ink4path9transform4mask10randomSeed2id13renderGroupID0K5StateAcA5PKInkV_AA0C4PathVSo17CGAffineTransformVSo08NSBezierP0CSgs6UInt32V10Foundation4UUIDVAYSgAC06RenderN0VSgtcfc"
  },
  "title" : "init(ink:path:transform:mask:randomSeed:id:renderGroupID:renderState:)"
}
-->

# init(ink:path:transform:mask:randomSeed:id:renderGroupID:renderState:)

```
init(ink: PKInk, path: PKStrokePath, transform: CGAffineTransform = .identity, mask: NSBezierPath? = nil, randomSeed: UInt32 = UInt32.random(in: 0...UInt32.max), id: UUID = UUID(), renderGroupID: UUID? = nil, renderState: PKStroke.RenderState? = nil)
```

---

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)