One Logo Pool Ball
PencilKit · IOS API REFERENCE

PKStrokePathReference

class · iOS 14.0+ · SDK 27.1

class PKStrokePathReference

Members (13)

init · iOS 14.0+

init

TypeScript
static initControlPointsCreationDate(controlPoints: Array<PKStrokePoint>, creationDate: globalThis.Date): PKStrokePathReference
Swift declaration
init(controlPoints: [PKStrokePoint], creationDate: Date)
init · iOS 27.0+

init

TypeScript
static initControlPointsCreationDateStrokePathID(controlPoints: Array<PKStrokePoint>, creationDate: globalThis.Date, strokePathID: string): PKStrokePathReference
Swift declaration
convenience init(controlPoints: [PKStrokePoint], creationDate: Date, strokePathID: UUID)
method · iOS 14.0+

interpolatedLocation

TypeScript
interpolatedLocation(parametricValue: number): { x: number; y: number }
Swift declaration
func interpolatedLocation(at parametricValue: CGFloat) -> CGPoint
method · iOS 14.0+

interpolatedPoint

TypeScript
interpolatedPoint(parametricValue: number): PKStrokePoint
Swift declaration
func interpolatedPoint(at parametricValue: CGFloat) -> PKStrokePoint
subscript · iOS 14.0+

subscript

TypeScript
subscript(i: number): PKStrokePoint
Swift declaration
subscript(i: Int) -> PKStrokePoint { get }
method · iOS 14.0+

parametricValue

TypeScript
parametricValueOffsetByDistance(parametricValue: number, distanceStep: number): number
Swift declaration
func parametricValue(_ parametricValue: CGFloat, offsetByDistance distanceStep: CGFloat) -> CGFloat
method · iOS 14.0+

parametricValue

TypeScript
parametricValueOffsetByTime(parametricValue: number, timeStep: number): number
Swift declaration
func parametricValue(_ parametricValue: CGFloat, offsetByTime timeStep: TimeInterval) -> CGFloat
method · iOS 14.0+

point

TypeScript
point(i: number): PKStrokePoint
Swift declaration
func point(at i: Int) -> PKStrokePoint
method · iOS 27.0+

subpath

TypeScript
subpath(range: SDKHandle): PKStrokePath
Swift declaration
func subpath(with range: __PKFloatRange) -> PKStrokePath
get · iOS 27.0+

bezierRepresentation

TypeScript
get bezierRepresentation(): _CoreGraphics_CGPath
Swift declaration
var bezierRepresentation: CGPath { get }
get · iOS 14.0+

count

TypeScript
get count(): number
Swift declaration
var count: Int { get }
get · iOS 14.0+

creationDate

TypeScript
get creationDate(): globalThis.Date
Swift declaration
var creationDate: Date { get }
get · iOS 27.0+

strokePathID

TypeScript
get strokePathID(): string
Swift declaration
var strokePathID: UUID { get }

Skipped declarations

5 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

PKStrokePathReference.init(bezierPath:creationDate:pointProvider:)

callback cannot propagate synchronous failure

PKStrokePathReference.enumerateInterpolatedPoints(in:strideByDistance:using:)

synchronous callback requires a nonescaping JS-thread call

PKStrokePathReference.enumerateInterpolatedPoints(in:strideByTime:using:)

synchronous callback requires a nonescaping JS-thread call

PKStrokePathReference.enumerateInterpolatedPoints(in:strideByParametricStep:using:)

synchronous callback requires a nonescaping JS-thread call

PKStrokePathReference.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

All PencilKit types →