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?
Search results for
[tags:wwdc20-10160]
9 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
In this video Will said that he drew alphabet letters and somehow exported it in .drawing format? How can I do it, for example with sample app? I can make PKDrawings there but didn't find out how to export this PKDrawing in .drawing format
The letters used for the synthetic text are taken from some assets with the drawing extension. How are these generated and can they be previewed in Xcode somehow?
Is there a way to access the strokes that are being selected by the lasso?
So I have a brand-new iPad Pro, and I'm trying to get a copy of iOS 14 to look at the new PencilKit data model features. Where do I get it from?
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.
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!
How can I make my own .drawing file to import it in Xcode to get drawing from this file and assign to PKDrawing and then draw it in PKCanvas view? I've explored WWDC2020 PencilKit demo project where they are also using .drawing file of lowercased and uppercased letters to draw them on the Canvas View. Thanks
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.