---
title: PKStrokeReference
framework: pencilkit
role: symbol
role_heading: Class
path: pencilkit/pkstrokereference
---

# PKStrokeReference

A class that represents the paths, boundaries and other properties of a stroke drawn on a canvas.

## Declaration

```swift
class PKStrokeReference
```

## Topics

### Creating a stroke object

- [init(ink:strokePath:transform:mask:)](pencilkit/pkstrokereference/init(ink:strokepath:transform:mask:).md)
- [init(ink:strokePath:transform:mask:randomSeed:)](pencilkit/pkstrokereference/init(ink:strokepath:transform:mask:randomseed:).md)

### Getting the stroke properties

- [ink](pencilkit/pkstrokereference/ink.md)
- [mask](pencilkit/pkstrokereference/mask.md)
- [maskedPathRanges](pencilkit/pkstrokereference/maskedpathranges.md)
- [path](pencilkit/pkstrokereference/path.md)
- [renderBounds](pencilkit/pkstrokereference/renderbounds.md)
- [transform](pencilkit/pkstrokereference/transform.md)
- [randomSeed](pencilkit/pkstrokereference/randomseed.md)

### Supporting backward compatibility

- [requiredContentVersion](pencilkit/pkstrokereference/requiredcontentversion.md)

### Initializers

- [init(ink:strokePath:transform:mask:randomSeed:strokeID:renderGroupID:renderState:)](pencilkit/pkstrokereference/init(ink:strokepath:transform:mask:randomseed:strokeid:rendergroupid:renderstate:).md)

### Instance Properties

- [renderGroupID](pencilkit/pkstrokereference/rendergroupid.md)
- [renderState](pencilkit/pkstrokereference/renderstate.md)
- [strokeID](pencilkit/pkstrokereference/strokeid.md)

### Instance Methods

- [substroke(with:)](pencilkit/pkstrokereference/substroke(with:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
