Situation
In my iOS app, I have a feature where I can take a picture and then, draw on it. I currently use an old Cocoapods
library and I would like to switch to PencilKit
.
Problem
Documentation and online tutorial are very unclear on the process/result. Is it supported by the framework to draw on an image ? Lots of SO post are saying to put the image in the background with a transparent PKCanvasView
. that's seems a bit of a hack. Will it support cropping image ?
What I want
My goal is to achieve something similar as to what we have when we take a screenshot. An image that you can crop and draw on. Is the post-screenshot UI based on PencilKit
? How can I achieve that ?
question from:
https://stackoverflow.com/questions/65944959/setting-pkcanvasview-to-draw-on-image-and-save-it 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…