---
title: "updateDrawing(_:)"
framework: pencilkit
role: symbol
role_heading: Instance Method
path: "pencilkit/pkstrokerecognizer/updatedrawing(_:)"
---

# updateDrawing(_:)

Updates the drawing the recognizer analyzes.

## Declaration

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

## Parameters

- `drawing`: The new drawing.

## Mentioned in

Recognizing handwriting and converting it to text

## Discussion

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

## See Also

### Providing drawing content

- [drawing](pencilkit/pkstrokerecognizer/drawing.md)
