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.

Beta
struct PKDrawing

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

Beta
class PKDrawingReference

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

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software