2D drawing app with UIGraphics -> UIKit -> Swift
Including line object and it's properties, you can modify it as you want.
- Color: UIColor
- Width: CGFloat
- Start: CGPoint
- End: CGPoint
- Cap: CGLineCap
- Join: CGLineJoin
- BlendMode: CGBlendMode
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
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)