acerbetti / ACEDrawingView

An open source iOS component to create a drawing app
Apache License 2.0
665 stars 171 forks source link

Clear doesn't actually clear #82

Closed lorenzoPrimi closed 7 years ago

lorenzoPrimi commented 7 years ago

Hi, I recently have a problem with this component, I have a ACEDrawingView over an UIImageView initialized with simple parameters

    self.signatureView.delegate = self;
    self.signatureView.lineWidth = 2.0f;

but when I call [self.signatureView clear]; doesn't clear the view, only does it the second time I call the clear function. What can be the cause of this?

lorenzoPrimi commented 7 years ago

UPDATE: the first clear seems to do something, in fact if I clear once and draw a line on the old one, the old one vanishes.

lorenzoPrimi commented 7 years ago

Updating to 2.2.1 fixed the issue