Shape detection for other apps?

When selecting a stroke path for object on PKCanvas, the option "Snap to Shape" appears.

I understand this function is still in beta and has not made available natively to other PencilKit app. Is there a way using Stroke API to call this function directly after the user hold pencil for half a second when stroke is done drawing, just like how it behaves in native apps?

Replies

Shape Detection is only supported in Notes, Screenshots & Markup in iOS 14. The "Snap to Shape" menu item isn't supposed to show up in a PKCanvasView so thank you for reporting that.
Is there a specific reason why features like shape recognition and copy to text are not supported in Pencilkit ? I really hope they will be added in the upcoming updates. ☹️
Would it be possible to add this functionality in the future? We understand that it might not be exposed right now, but many of us would appreciate if it could be added in a future version of the SDK. I submitted feedback as well.