---
title: "recognizedText(strokeIDs:)"
framework: pencilkit
role: symbol
role_heading: Instance Method
path: "pencilkit/pkstrokerecognizer/recognizedtext(strokeids:)"
---

# recognizedText(strokeIDs:)

Returns the recognized text from the specified strokes in the drawing.

## Declaration

```swift
final func recognizedText(strokeIDs: Set<UUID>? = nil) async -> String?
```

## Parameters

- `strokeIDs`: The ids of the PKStrokes in drawing to analyze. Pass nil to return the recognized text from the whole drawing.

## Mentioned in

Recognizing handwriting and converting it to text

## See Also

### Recognizing handwriting

- [indexableContent](pencilkit/pkstrokerecognizer/indexablecontent.md)
