A Simple View in Swift to add Free hand smooth line drawing to your iOS Application.
- Copy the file LineHolderView.swift in your project.
- Add a view to your view controller in storyboard.
- Set the class of the view to LineHolderView.
- You're Done. Start drawing without a single line of code. :)
You can change the different properties directly from storyboard, No need to write code. :)
- Enable/Disable Arrow Head.
- Enable/Disable Outline.
- Change Line colour.
- Change Outline colour.
To get the final image just call the method getFinalImage()
or getFinalImage(background:)
, use later one if you want to add a background image to the drawing.
Enjoy.. :)