An iOS painting framework base on CoreGraphics (UIBezierPath).
- Simply drag the
KKSPainting
folder into your project. - Add a
KKSPaintingScrollView
subview of the mainview.
Note: If you want to run the demo project, you should install the pod first ( by
pod install
).
You can draw the following items:
- Smooth Signatures
- Line
- Segments
- Bezier
- Polygon
- Rectangle
- Ellipse
Redo, undo, clear action also supported.
You can do the following editing actions to paintings:
- Move
- Rotate & Zoom
- Remove
- Copy & Paste
- Fill (Closed Painting only)
You can save the KKSPaintingModel
to persistent all the data and reload it using - (void)reloadManagerWithModel:(KKSPaintingModel *)paintingModel;
of KKSPaintingManager
. All the paintings can be edited.
This project is is available under the MIT license. See the LICENSE file for more info. Attribution by linking to the project page is appreciated.