---
title: "init(ink:strokePath:transform:mask:randomSeed:strokeID:renderGroupID:renderState:)"
framework: pencilkit
role: symbol
role_heading: Initializer
path: "pencilkit/pkstrokereference/init(ink:strokepath:transform:mask:randomseed:strokeid:rendergroupid:renderstate:)"
---

# init(ink:strokePath:transform:mask:randomSeed:strokeID:renderGroupID:renderState:)

## Declaration

```swift
init(ink: PKInk, strokePath: PKStrokePath, transform: CGAffineTransform, mask: UIBezierPath?, randomSeed: UInt32, strokeID: UUID, renderGroupID: UUID?, renderState: __PKStrokeRenderState?)
```

```swift
init(ink: PKInk, strokePath: PKStrokePath, transform: CGAffineTransform, mask: NSBezierPath?, randomSeed: UInt32, strokeID: UUID, renderGroupID: UUID?, renderState: __PKStrokeRenderState?)
```
