Latest 1.0
Homepage https://github.com/swifty-iOS/MBDrawingView
License MIT
Platforms ios 10.0
Authors

This is free and drawing iOS UIView component that can be used fot free hand drawing. This gives you feature like different pencil sizes and colors on same drawing pad. This give a feature like Undo, clear and capture drawing as Image.

MBDrawingView

Drawing features

MBDrawingView

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate MBDrawingView into your Xcode project using CocoaPods, specify it in your Podfile:

target '<Your Target Name>' do
    pod 'MBDrawingView'
end

How to Use

It is simple and easy to use, just add UIView on xib and assign MBDrawingView class in XIB and you are DONE.

Basic Features

let drawingView = MBDrawingView()

// Set pencil size
drawingView.pencilSize = 4.0

// Set color
drawingView.pencilColor = UIColor.red

// Check view has drawing or not
if drawingView.hasDrawing { }

// Capture drawing as image
let image =  drawingView.capture()

// Undo the last drawing sequence
drawingView.undo()

// Clear Drawing
drawingView.clear()

Licence

MIT

Latest podspec

{
    "name": "MBDrawingView",
    "version": "1.0",
    "summary": "Free hand drawing iOS UIView with multilsize and mutlicolor drawing and convert tit to image.",
    "homepage": "https://github.com/swifty-iOS/MBDrawingView",
    "license": "MIT",
    "authors": {
        "Swifty-iOS": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/swifty-iOS/MBDrawingView.git",
        "tag": "1.0"
    },
    "source_files": "Source/*.swift",
    "swift_version": "5.0"
}

Pin It on Pinterest

Share This