<!--
{
  "documentType" : "article",
  "framework" : "Updates",
  "identifier" : "/documentation/Updates/PencilKit",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "PencilKit updates"
}
-->

# PencilKit updates

Learn about important changes to PencilKit.

## Overview

Browse notable changes in <doc://com.apple.documentation/documentation/PencilKit>.

## June 2026

### Strokes

- Access and assign a stable identity to strokes and stroke paths using the `id` property on <doc://com.apple.documentation/documentation/PencilKit/PKStroke-swift.struct> and <doc://com.apple.documentation/documentation/PencilKit/PKStrokePath-swift.struct>, which conform to `Identifiable`.
- Select strokes programmatically and respond to selection changes using the <doc://com.apple.documentation/documentation/PencilKit/PKCanvasView/selection> property and the <doc://com.apple.documentation/documentation/PencilKit/PKCanvasViewDelegate/canvasViewSelectionDidChange(_:)> delegate method.
- Erase portions of a drawing along a path using <doc://com.apple.documentation/documentation/PencilKit/PKDrawing-swift.struct/erasePath(_:mask:transform:)-shn>, or get a new drawing with the erasure applied using <doc://com.apple.documentation/documentation/PencilKit/PKDrawing-swift.struct/erasingPath(_:mask:transform:)-9dpi9>.
- Convert a stroke path to a `CGPath` using the <doc://com.apple.documentation/documentation/PencilKit/PKStrokePathReference/bezierRepresentation> property, or create a stroke path from a bezier path using <doc://com.apple.documentation/documentation/PencilKit/PKStrokePath-swift.struct/init(bezierPath:creationDate:pointProvider:)>.

### Handwriting recognition

- Recognize handwritten text, search within ink, and generate indexable string content using <doc://com.apple.documentation/documentation/PencilKit/PKStrokeRecognizer>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)