I am looking to use the new PencilKit API introduced at WWDC19 in my app for annotating images. I’ve had a play with Apple’s sample app but it doesn’t show to to integrate the
PKCanvas with an image. Apple uses this in their notes app to annotate images, you can see what I mean here -> (https://drive.google.com/file/d/1apwaV8b7aQAjWIgAvA_oqzYlJFN4iS7n/view), (Just create a new note in the Notes app, attach an image, click on the image and then click the pencil in the top right corner to try it out). I am looking for an example in Swift.I have tried setting the
PKCanvas’s background color to clear and making it non opaque and adding an image behind the PKCanvas but that does not work.Thanks for anyone's help