nativescript-community / nativescript-drawingpad

:pencil: NativeScript plugin to provide a way to capture any drawing (signatures are a common use case) from the device
Apache License 2.0
90 stars 32 forks source link

IOS : cannot clear transparent background drawing #55

Open jscti opened 4 years ago

jscti commented 4 years ago

Seems like clearing a drawing on IOS works only when dealing with opaque colors.

I need to draw on an image , And I need to clear the drawing if needed.

Tried both clear() and clearWithColor() but :

How can I erase the drawing and having it back to transparent ? Thanks

bradmartin commented 4 years ago

Not sure at the moment, have you looked at the source to see how the clear drawing works? Might be something trivial to fix but I've not had time to look at this myself. If you find anything useful and want to contribute a PR it will be accepted 💯