Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear the drawing view #62

Open
ashishpatil9292 opened this issue Aug 18, 2020 · 2 comments
Open

clear the drawing view #62

ashishpatil9292 opened this issue Aug 18, 2020 · 2 comments

Comments

@ashishpatil9292
Copy link

we want to reset or clear all the drawing view on click event,but couldnt find the proper method

@Alexvojander
Copy link

Alexvojander commented Sep 6, 2020

issue still actual
any in-box solutions for this lib?

you can add inside DrawingOperationStack class this code:

func clear(){

    while canUndo{
        undo()
    }

    clearRedoStack()
}

or make extension

extension DrawingOperationStack {

func clear(){
    while canUndo{
        undo()
    }

    clearRedoStack()
}

}

@ashishpatil9292
Copy link
Author

ashishpatil9292 commented Nov 19, 2020

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants