I'd like to know if there are any official, out-of-the-box tools available for handwriting and PaperKit that can help lower the input barrier for older adults and users with disabilities.
Hi YingZHU,
Thanks for the clarification! For reducing the impact of tremors on drawings, applying a smoothing filter to the strokes is likely the best approach using what PencilKit provides.
You can observe when a drawing ends using canvasViewDrawingDidChange and then grab the most recent stroke from the PKCanvasView.drawing to apply a smoothing filter to. In the case that the smoothing algorithm that you want to apply is for Bézier paths, you can use the Bézier path conversion APIs on PKStrokePath to convert to a CGPath, apply your filter, and then convert back.
For a more custom approach, you could add an overlay on top of the canvas that handles the gestures instead of the canvas view. That would allow you to provide more custom visual guidance and live smoothing when drawing a stroke, and then translate into PKStrokes to insert into the canvas. That would likely be a more involved approach.
-Liam