<!--
{
  "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/recognizedText(strokeIDs:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "s:9PencilKit18PKStrokeRecognizerC14recognizedText9strokeIDsSSSgShy10Foundation4UUIDVGSg_tYaF"
  },
  "title" : "recognizedText(strokeIDs:)"
}
-->

# recognizedText(strokeIDs:)

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

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

## Parameters

`strokeIDs`

The `id`s of the `PKStrokes` in `drawing` to analyze.
Pass `nil` to return the recognized text from the whole drawing.

---

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)