---
title: "enumerateInterpolatedPoints(in:strideByTime:using:)"
framework: pencilkit
role: symbol
role_heading: Instance Method
path: "pencilkit/pkstrokepathreference/enumerateinterpolatedpoints(in:stridebytime:using:)"
---

# enumerateInterpolatedPoints(in:strideByTime:using:)

Executes a given block using each point in a range with a time step.

## Declaration

```swift
func enumerateInterpolatedPoints(in range: __PKFloatRange, strideByTime timeStep: TimeInterval, using block: @escaping (PKStrokePoint, UnsafeMutablePointer<ObjCBool>) -> Void)
```

## Parameters

- `range`: The parametric range to enumerate points in.
- `timeStep`: The time interval to step between points.
- `block`: The block to execute for each point. This block takes two parameters: point —The interpolated point on the spline. stop — A reference to a Boolean value. Setting the value to YES within the block stops further enumeration of the array. If a block stops further enumeration, that block continues to run until it’s finished.

## See Also

### 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)
- [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)
