Draw Sketch on scratchpad in swift3(Currenlty available for iPad only).
-
Just instantiate the object of class DrawSketchViewController like:
let drawsketchVC = DrawSketchViewController(nibName: "DrawSketchViewController", bundle: nil)
-
Set previosAnnotationImagePath, if you are editing existing sketch.
-
Set isNewSnap to true, in case of new Sketch.
-
Set originalImage, so that white drawing screen comes when view loaded, for this we have used some function to load files from Bundle (pathForSavedImage()).
-
Set image_title as your image file name, name with which you want to store your sketch image.
-
Implement delegate DrawSketchViewControllerDelegate which will return you image path where image saved.