Skip to content

A view with drawing functions. Include smooth path,rect,line,eraser and set drawing line alpha.

License

Notifications You must be signed in to change notification settings

kakerucode/TouchDrawView

Repository files navigation

TouchDrawView

A view with drawing functions. Include smooth path,rect,line,eraser and set drawing line alpha.

Usage

Import the folder TouchDrawView to your project or use CocoaPods. Than you can create TouchDrawView from IB or programmatically init it in your code.

CocoaPods

To install CocoaPods, run:

$ gem install cocoapods

Then create a Podfile with the following contents:

platform :ios, '10.0'
use_frameworks!

target 'YOUR_TARGET_NAME' do
pod 'TouchDrawView'
end

Finally, run the following command to install it:

$ pod install

Freature

  • Draw path, line, rectangle, ellipse on image
  • Eraser
  • Undo / Redo
  • Multiple color
  • Multiple width of lines
  • Multiple alpha values
  • Export the drawn image.

Requirement

swift 3.2 or later \ Xcode 9.0 or later

About

A view with drawing functions. Include smooth path,rect,line,eraser and set drawing line alpha.

Resources

License

Stars

Watchers

Forks

Packages

No packages published