<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKStrokeRecognizer/updateDrawing(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "s:9PencilKit18PKStrokeRecognizerC13updateDrawingyyAA9PKDrawingVYaF"
  },
  "title" : "updateDrawing(_:)"
}
-->

# updateDrawing(_:)

Updates the drawing the recognizer analyzes.

```
final func updateDrawing(_ drawing: PKDrawing) async
```

## Parameters

`drawing`

The new drawing.

## Discussion

Recognition expects handwriting and strokes scaled as if written on standard paper
sizes in points, such as US-letter or A4.

---

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)