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

Custom Shapes #79

Open
devarajidesign opened this issue Apr 11, 2017 · 1 comment
Open

Custom Shapes #79

devarajidesign opened this issue Apr 11, 2017 · 1 comment

Comments

@devarajidesign
Copy link

Hai,

Can you please explain how to use the custom in that code.Because i tried it forcely closed.I want some shapes like triangle,rectangle..

@acerbetti
Copy link
Owner

In the current implementation you can only have one ACEDrawingTool.

Create a new NSObject which implement the protocol ACEDrawingTool (see other examples like rectangle).

Now set the new tool to the ACEDrawingTool property and set the drawTool = ACEDrawingToolTypeCustom

you should be able to use your custom tool.

If you want to implement more than one, I would like to suggest to implement new tools and submit a PR

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

No branches or pull requests

2 participants