When using PencilKit in iOS 13/iPadOS, how do you remove all content from the screen, or remove those content selected (via lasso)?
I can't find any functions in PKDrawing or PKCanvasView that do these?
You can clear the drawing on the PKCanvasView by simply setting the drawing property equal to a new empty PKDrawing.
canvasView.drawing = PKDrawing()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With