One Logo Pool Ball
PencilKit · IOS API REFERENCE

PKDrawingReference

class · iOS 13.0+ · SDK 27.1

class PKDrawingReference

Members (12)

method · iOS 13.0+

dataRepresentation

TypeScript
dataRepresentation(): ArrayBuffer
Swift declaration
func dataRepresentation() -> Data
method · iOS 13.0+

appending

TypeScript
appending(drawing: PKDrawing): PKDrawing
Swift declaration
func appending(_ drawing: PKDrawing) -> PKDrawing
method · iOS 14.0+

appendingStrokes

TypeScript
appendingStrokes(strokes: Array<PKStroke>): PKDrawing
Swift declaration
func appendingStrokes(_ strokes: [PKStroke]) -> PKDrawing
method · iOS 13.0+

applying

TypeScript
applying(transform: _CoreFoundation_CGAffineTransform): PKDrawing
Swift declaration
func applying(_ transform: CGAffineTransform) -> PKDrawing
method · iOS 27.0+

erasingStrokePath

TypeScript
erasingStrokePath(eraserPath: PKStrokePath, mask: (_UIKit_UIBezierPath) | null, transform: _CoreFoundation_CGAffineTransform): PKDrawing
Swift declaration
func erasingStrokePath(_ eraserPath: PKStrokePath, mask: UIBezierPath?, transform: CGAffineTransform) -> PKDrawing
method · iOS 13.0+

image

TypeScript
image(rect: { x: number; y: number; width: number; height: number }, scale: number): _UIKit_UIImage
Swift declaration
func image(from rect: CGRect, scale: CGFloat) -> UIImage
init · iOS 13.0+

init

TypeScript
static init(): PKDrawingReference
Swift declaration
init()
init · iOS 13.0+

init

TypeScript
static initData(data: ArrayBuffer): PKDrawingReference
Swift declaration
init(data: Data) throws
init · iOS 14.0+

init

TypeScript
static initStrokes(strokes: Array<PKStroke>): PKDrawingReference
Swift declaration
convenience init(strokes: [PKStroke])
get · iOS 13.0+

bounds

TypeScript
get bounds(): { x: number; y: number; width: number; height: number }
Swift declaration
var bounds: CGRect { get }
get · iOS 17.0+

requiredContentVersion

TypeScript
get requiredContentVersion(): PKContentVersion
Swift declaration
var requiredContentVersion: PKContentVersion { get }
get · iOS 14.0+

strokes

TypeScript
get strokes(): Array<PKStroke>
Swift declaration
var strokes: [PKStroke] { get }

Skipped declarations

No declarations were skipped in this snapshot.

All PencilKit types →