Thanks for this tutorial! I tried running the final version of the app but am not able to draw on the three canvases in the Add Shortcut part of the app. I’ve tried both in the simulator and on device.
Is there something that must be done in advance to enable drawing?
Adding canvasView.drawingPolicy = .anyInput in the function setupPencilKitCanvas()solved the issue for me. Also it may be required in iOS 14, so simply wrap the statement in an availability check like so.
if #available(iOS 14, *) {
canvasView.drawingPolicy = .anyInput
}
You can find it in DrawingView in the Views folder.