I've integrated PencilKit into my app, but I've noticed that shape recognition isn't working during drawing, even though it works perfectly in the Notes app. Is this a bug, or is shape recognition simply not supported in PencilKit for Swift?
The PencilKit API does not offer automatic shape recognition. However, you can retrieve point and stroke information from a PKCanvasView in a PKDrawing and you can use that information to build your own shape recognizers. For more information, see the PKDrawing documentation. Also, for an example of how to access and use the point and stroke information inside of a PKDrawing see the Inspecting, Modifying, and Constructing PencilKit Drawings sample code project.