1

Using Apple's own photo album, when editing photos, I used the Apple Pencil to draw blurred red paths, keeping and then creating perfect circles. I looked at the API for PencilKit and found that Apple does not provide one. But I want to implement drawing in my application and keep creating the perfect shape. How do I do that?

code
  • 13
  • 2

1 Answers1

0

Shape recognition is a private API. Only Apple's app can use it. My suggestion would be: Check last stroke in the canvasViewDrawingDidChange(), then check with your algorithmen which shape it is, then create a beautiful PKStroke and replace the last stroke.

Brew Master
  • 457
  • 3
  • 13