enumerateInterpolatedPoints(in:strideByTime:using:)
Executes a given block using each point in a range with a time step.
Declaration
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 toYESwithin the block stops further enumeration of the array. If a block stops further enumeration, that block continues to run until it’s finished.