Search results for

[tags:wwdc20-10027]

9 results found

Post

Replies

Boosts

Views

Activity

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?
5
0
2.5k
Jan ’26
2 weird bugs while working with sample project of pencilKit (PencilKitDraw)
I'm trying to customize CanvasView by stacking canvasViews. If user draw on a canvasView, the stroke will be passed to another canvasView and got delete in original canvasView. It works quite well but sometimes a stroke just got deleted and not being sent to another canvasView. It shows those 2 errors, I guess the first error occurs because after user stop using tool, Apple Pencil still send info to canvasView. But I don't know why it happened and why this error deleted a stroke on screen. The second error says me nothing. I think i need more context to be able to fix the bugs. PencilKitDraw[6594:2849236] [Stroke Generator] Missed updates at end of stroke: 2 (total points: 69) PencilKitDraw[6594:2848789] [] Drawing did change that is not in text.
0
0
1.2k
Feb ’21
Extending PencilKit APIs even further
Extending the PencilKit APIs to expose the inner data structures was a great move! And for apps like the Handwriting Tutor sample app this is enough. However, I'd love to implement a custom drawing engine based on PKDrawing since it provides a lot of functionality out of the box (user interaction through PKCanvasView, de-/serialization, spline interpolation). But for a custom renderer, two key parts are missing: Custom inks (FB8261616), so we can define custom brushes that render differently than the three system styles. Detecting changes while the user is drawing (FB8261554), otherwise we can't draw their current stroke on screen. I know this was mentioned here before, but I wanted to emphasize that those two features would enable us to implement a full custom render engine based on PencilKit. Thanks for considering!
0
0
978
Aug ’20
Is it possible to combine strokes?
I saw the demo and got instantly inspired by it, so I was wondering if I could use it to teach handwriting in my country. Children here have to write cursive letters and in the demo they used standalone letters. So I thought maybe I could combine the cursive written letter into a word. So far so good, but the stroke animation only animates the original stroke, so it still writes the word with more strokes. My question is if it’s possible to combine strokes so that if I want to animate for example a word like “top” it starts by the t and ends at the end of p. So it would be one stroke instead of 3. Thank you for the amazing framework, and thank you in advance for any answer.
0
0
671
Jul ’20