Sample Code

Drawing With PencilKit

Add expressive, low-latency drawing to your application with PencilKit.

Download

Overview

Configure the Sample Code Project

Before you run the sample code project in Xcode:

  • You need an iOS device running iOS 13 or later.

See Also

Canvas

class PKCanvasView

A view that captures Apple Pencil input and displays the rendered results in an iOS app.

struct PKDrawing

An opaque data object that contains the drawing information captured by a canvas view.

class PKDrawingReference

An opaque data object that contains the drawing information captured by a canvas view.