---
title: PKStrokePathReference
framework: pencilkit
role: symbol
role_heading: Class
path: pencilkit/pkstrokepathreference
---

# PKStrokePathReference

A class that captures the components of a stroke and provides methods to find and interpolate points along the stroke’s path.

## Declaration

```swift
class PKStrokePathReference
```

## Topics

### Creating a new stroke path

- [init(controlPoints:creationDate:)](pencilkit/pkstrokepathreference/init(controlpoints:creationdate:).md)

### Getting the stroke path properties

- [count](pencilkit/pkstrokepathreference/count.md)
- [creationDate](pencilkit/pkstrokepathreference/creationdate.md)

### Accessing and interpolating points

- [enumerateInterpolatedPoints(in:strideByDistance:using:)](pencilkit/pkstrokepathreference/enumerateinterpolatedpoints(in:stridebydistance:using:).md)
- [enumerateInterpolatedPoints(in:strideByParametricStep:using:)](pencilkit/pkstrokepathreference/enumerateinterpolatedpoints(in:stridebyparametricstep:using:).md)
- [enumerateInterpolatedPoints(in:strideByTime:using:)](pencilkit/pkstrokepathreference/enumerateinterpolatedpoints(in:stridebytime:using:).md)
- [interpolatedLocation(at:)](pencilkit/pkstrokepathreference/interpolatedlocation(at:).md)
- [interpolatedPoint(at:)](pencilkit/pkstrokepathreference/interpolatedpoint(at:).md)
- [parametricValue(_:offsetByDistance:)](pencilkit/pkstrokepathreference/parametricvalue(_:offsetbydistance:).md)
- [parametricValue(_:offsetByTime:)](pencilkit/pkstrokepathreference/parametricvalue(_:offsetbytime:).md)
- [point(at:)](pencilkit/pkstrokepathreference/point(at:).md)
- [subscript(_:)](pencilkit/pkstrokepathreference/subscript(_:).md)

### Initializers

- [init(bezierPath:creationDate:pointProvider:)](pencilkit/pkstrokepathreference/init(bezierpath:creationdate:pointprovider:).md)
- [init(controlPoints:creationDate:strokePathID:)](pencilkit/pkstrokepathreference/init(controlpoints:creationdate:strokepathid:).md)

### Instance Properties

- [bezierRepresentation](pencilkit/pkstrokepathreference/bezierrepresentation.md)
- [strokePathID](pencilkit/pkstrokepathreference/strokepathid.md)

### Instance Methods

- [subpath(with:)](pencilkit/pkstrokepathreference/subpath(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)
