Coder Social home page Coder Social logo

taroyuyu / sketch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daihase/sketch

0.0 0.0 0.0 829 KB

Sketch have a lot of basic functions to develop a drawing app for iPhone. Anyone can easily create drawing iOS Application.

License: MIT License

Ruby 5.33% Swift 94.67%

sketch's Introduction

platforms License Language: Swift 5.0 CocoaPods Carthage Compatible

Sketch has basic functions for drawing from the beginning. Anyone can easily create drawing iOS Applications.

โ€ป Below is the image of app actually made using Sketch.

Sketch_animation1 Sketch_animation2 Sketch_animation3

๐Ÿ“ Features

  • Pen tool
  • Eraser tool
  • Stamp tool
  • Fill
  • Undo / Redo
  • Draw on Camera / Gallery image
  • Multiple colors can be set
  • Multiple width can be set
  • Multiple alpha can be set
  • Multiple tools (Line, Arrow, Rectangle, Ellipse, Star)
  • Multiple Pen Filters (Neon, Blur)

โœ๏ธ Requirements

  • Xcode 9.0+
  • Swift 4.0+ (Swift 5 is ready ๐Ÿ‘)

โœ๏ธ Installation

Using CocoaPods

Sketch is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Sketch'

And run this command:

$ pod install

Using Carthage

Add this to Cartfile:

github "daihase/Sketch"

Then run this command:

$ carthage update

Finally, add the framework:

โœ๏ธ How to use

Using IB/Storyboards:

Only 3 steps needed to use SketchView

1. Set UIView on Storyboard.

2. Open Inspector and enter SketchView in the Class field of Custom Class.

3. Then just connect SketchView to UIViewController as usual.

Sketch Logo

Using code:

1. Import Sketch in proper place.

import Sketch

2. Create SketchView, and addSubview to the view you want to set.

let sketchView = SketchView(frame:
    CGRect(x: 0,
           y: 0,
           width: UIScreen.main.bounds.width,
           height: UIScreen.main.bounds.height
    )
)

self.view.addSubview(sketchView)

๐Ÿ‘Œ Most of the functions are implemented in the Example Application. Please see that for details.

โœ๏ธ License

I am using Example Application icon from Freepik. ๐Ÿ‘‰ Designed by Freepik and distributed by Flaticon

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

sketch's People

Contributors

daihase avatar hdk2200 avatar tuchangwei avatar rivera-ernesto avatar ymanya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.