Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/authman2/canvas

An iOS library for painting with Raster and Scalable Vector Graphics.
https://github.com/authman2/canvas

Last synced: about 2 months ago
JSON representation

An iOS library for painting with Raster and Scalable Vector Graphics.

Awesome Lists containing this project

README

        

#   Canvas

[![Version](https://img.shields.io/cocoapods/v/Canvas.svg?style=flat)](http://cocoapods.org/pods/Canvas+)
[![License](https://img.shields.io/cocoapods/l/Canvas.svg?style=flat)](http://cocoapods.org/pods/Canvas+)
[![Platform](https://img.shields.io/cocoapods/p/Canvas.svg?style=flat)](http://cocoapods.org/pods/Canvas+)

Canvas is an iOS library that creates an area on the screen where the user can draw lines and shapes, style drawings by adding different types of brushes, and work with multiple layers. It provides an easy way to add on-screen drawing to any iOS app. Canvas uses SVG and Raster graphics for drawing.

## Features
- **Canvas**: A UIView with a clear background where users can draw.
- **CanvasTools**: Draw using different shapes (pen, eraser, line, rectangle, ellipse, and eyedropper)
- **CanvasLayers**: Create multiple SVG or Raster layers that can be moved, swapped, hidden, locked, and more.
- **Brushes**: Create and use different brushes to style drawings on the canvas.
- **CanvasEvents**: Keep track of when the user starts drawing, is drawing, and finishes drawing by using the CanvasEvents protocol.
- **Export**: Export your canvas drawing as a UIImage.
- **Undo/Redo/Clear**: Support for undo, redo, and clearing of drawings. You can also define for yourself what actions in your app should count toward to the undo/redo stack by using the addCustomUndoRedo function.
- **Selection Tool**: Select different drawing strokes and move them around the canvas. Drawings can also be copied and pasted onto different canvas layers.

## Installation

Canvas is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'Canvas+'
```

## Author
- Year: 2018
- Languages/Tools: Swift
- Programmer: Adeola Uthman

## License

Canvas is available under the MIT license. See the LICENSE file for more info.