https://github.com/coder-acjhp/drawing-app
Simple 2D drawing app with UIGraphics
https://github.com/coder-acjhp/drawing-app
2d-drawing core-graphics drawing swift uicolor
Last synced: 8 months ago
JSON representation
Simple 2D drawing app with UIGraphics
- Host: GitHub
- URL: https://github.com/coder-acjhp/drawing-app
- Owner: Coder-ACJHP
- License: gpl-3.0
- Created: 2018-11-11T01:39:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-11T02:08:14.000Z (over 7 years ago)
- Last Synced: 2025-10-11T21:39:36.838Z (8 months ago)
- Topics: 2d-drawing, core-graphics, drawing, swift, uicolor
- Language: Swift
- Size: 192 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Drawing-App
2D drawing app with UIGraphics -> UIKit -> Swift

#### Line class:
Including line object and it's properties, you can modify it as you want.
##### Line Options:
* Color: UIColor
* Width: CGFloat
* Start: CGPoint
* End: CGPoint
* Cap: CGLineCap
* Join: CGLineJoin
* BlendMode: CGBlendMode
#### DrawingArea:
Extended from UIView class drawing lines with options, listening touches on screen and tracking the locations based on UIGraphics context. As default context using .interpolationQuality = .high
##### DrawingArea Options:
It is flexible, class you can modify it like normal UIView just added
* isDrawable : Bool // For controlling drawing mode
* Fill background: UIColor (tool)
* Eraser (tool)
* Color Picker (tool)
* Undo (tool)
* Clear (tool)