Swift MIT

Sketch

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

D

daihase

Dernière activité 13 juil. 2026
daihase/Sketch

349

étoiles

62

forks

16

issues ouvertes

colorcoloringdesign-toolsdoodledrawdrawinggraphicsiospaintpaintingswiftswift-library

Ce README est souvent en anglais.

platforms License Language: Swift 5.0 Swift Package Manager 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

Freehand Drawing Shape Tools Stamp Tool

📝 Features

  • Pen tool
  • Eraser tool
  • Stamp tool
  • Editable 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

  • iOS 13.0+
  • Xcode 11.0+
  • Swift 5.0+

✏️ Installation

In Xcode, go to File → Add Package Dependencies... and enter the repository URL:

https://github.com/daihase/Sketch.git

Or add it to your Package.swift:

dependencies: [
    .package(url: "https://github.com/daihase/Sketch.git", from: "4.0.0")
]

Using CocoaPods

Add the following line to your Podfile:

pod 'Sketch'

Then run:

$ pod install

Using Carthage

Add this to Cartfile:

github "daihase/Sketch"

Then run:

$ 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.

✏️ Privacy

Sketch does not collect any data. A privacy manifest file is provided.

✏️ 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.

Projets similaires

🎃 Create hand-drawn, sketchy, comic shape in Swift

Swiftiosswiftswiftui
Oonmyway133
1,1 k étoiles56

A simple, lightweight drawing framework written in Swift

Swiftdrawingswift
AAwalz
348 étoiles69

iOS painting and drawing library based on Metal. 神笔马良有一支神笔(基于 Metal 的涂鸦绘图库)

Swiftdoodledrawinghandwriting
HHarley-xk
1,5 k étoiles220