Right now after scribble is complete, the drawing disappears. Am I able to keep the drawing if I add a UIScribbleInteraction to PencilKit for example? That way I can get the handwriting translation and keep the pencilkit drawing.
If what you want to achieve is to get handwriting recognition results for strokes in a drawing canvas, I would not recommend the approach you describe. Both Scribble and the PKCanvasView would compete to get the pencil events and draw strokes. You can control if you want to let the user draw on the canvas view, or have their writing transcribed by Scribble, but not both at the same time.
Scribble is not intended to be a general purpose handwriting recognition API. Its main purpose is to allow text entry on text fields.
New in PencilKit on iOS 14 is full access to the underlying strokes in a canvas via PKDrawing, which you can process through a handwriting recognition engine.
Scribble is not intended to be a general purpose handwriting recognition API. Its main purpose is to allow text entry on text fields.
New in PencilKit on iOS 14 is full access to the underlying strokes in a canvas via PKDrawing, which you can process through a handwriting recognition engine.