Nicejinux/NXDrawKit

Undo clears background image

waltermvp opened this issue ยท 8 comments

When creating a Canvas with a background image with Canvas(backgroundImage: UIImage.init(named: "Image")!) calling undo wipes everything including the background image.

The undo functionality should undo the first drawing but not clear the background image. It seems the first drawing and the setting of the image are merged into the first action.

Also is there way to clear all the undos?

Oh.. I see.
I'll fix it.
and I'll check clear undo

Thanks.

@Nicejinux thanks for the quick response.

Any estimate till when it's fixed? Id be happy to submit a PR if it helps :)

Oh. sure. You can submit PR anytime~~

@Nicejinux great ill try to see if i can get it done tonight

Fixed.
Please update and check.

Thanks.

@Nicejinux works perfectly :) thanks !!