PencilKit · IOS API REFERENCE
PKStrokeReference
class · iOS 14.0+ · SDK 27.1
class PKStrokeReference
Members (15)
init · iOS 14.0+init
TypeScriptstatic initInkStrokePathTransformMask(ink: PKInk, strokePath: PKStrokePath, transform: _CoreFoundation_CGAffineTransform, mask?: (_UIKit_UIBezierPath) | null): PKStrokeReference
Swift declarationinit(ink: PKInk, strokePath: PKStrokePath, transform: CGAffineTransform, mask: UIBezierPath?)
init · iOS 16.0+init
TypeScriptstatic initInkStrokePathTransformMaskRandomSeed(ink: PKInk, strokePath: PKStrokePath, transform: _CoreFoundation_CGAffineTransform, mask: (_UIKit_UIBezierPath) | null, randomSeed: number): PKStrokeReference
Swift declarationinit(ink: PKInk, strokePath: PKStrokePath, transform: CGAffineTransform, mask: UIBezierPath?, randomSeed: UInt32)
init · iOS 27.0+init
TypeScriptstatic initInkStrokePathTransformMaskRandomSeedStrokeIDRenderGroupIDRenderState(ink: PKInk, strokePath: PKStrokePath, transform: _CoreFoundation_CGAffineTransform, mask: (_UIKit_UIBezierPath) | null, randomSeed: number, strokeID: string, renderGroupID?: (string) | null, renderState?: (PKStrokeRenderStateReference) | null): PKStrokeReference
Swift declarationinit(ink: PKInk, strokePath: PKStrokePath, transform: CGAffineTransform, mask: UIBezierPath?, randomSeed: UInt32, strokeID: UUID, renderGroupID: UUID?, renderState: PKStrokeRenderStateReference?)
method · iOS 27.0+substroke
TypeScriptsubstroke(range: SDKHandle): PKStroke
Swift declarationfunc substroke(with range: __PKFloatRange) -> PKStroke
get · iOS 14.0+ink
TypeScriptget ink(): PKInk
Swift declarationvar ink: PKInk { get }
get · iOS 14.0+mask
TypeScriptget mask(): (_UIKit_UIBezierPath) | null
Swift declarationvar mask: UIBezierPath? { get }
get · iOS 14.0+maskedPathRanges
TypeScriptget maskedPathRanges(): Array<SDKHandle>
Swift declarationvar maskedPathRanges: [__PKFloatRange] { get }
get · iOS 14.0+path
TypeScriptget path(): PKStrokePath
Swift declarationvar path: PKStrokePath { get }
get · iOS 16.0+randomSeed
TypeScriptget randomSeed(): number
Swift declarationvar randomSeed: UInt32 { get }
get · iOS 14.0+renderBounds
TypeScriptget renderBounds(): { x: number; y: number; width: number; height: number }
Swift declarationvar renderBounds: CGRect { get }
get · iOS 27.0+renderGroupID
TypeScriptget renderGroupID(): (string) | null
Swift declarationvar renderGroupID: UUID? { get }
get · iOS 27.0+renderState
TypeScriptget renderState(): (PKStrokeRenderStateReference) | null
Swift declarationvar renderState: PKStrokeRenderStateReference? { get }
get · iOS 17.0+requiredContentVersion
TypeScriptget requiredContentVersion(): PKContentVersion
Swift declarationvar requiredContentVersion: PKContentVersion { get }
get · iOS 27.0+strokeID
TypeScriptget strokeID(): string
Swift declarationvar strokeID: UUID { get }
get · iOS 14.0+transform
TypeScriptget transform(): _CoreFoundation_CGAffineTransform
Swift declarationvar transform: CGAffineTransform { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
PKStrokeReference.init()
inherited init: cannot prove legal (class declares 3 custom initializers)
All PencilKit types →