Skip to content

Commit

Permalink
Merge pull request #25 from tuchangwei/master
Browse files Browse the repository at this point in the history
Update SketchTool.swift
  • Loading branch information
daihase authored Jan 20, 2020
2 parents 0e79faa + 4e874b5 commit e385c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sketch/Classes/SketchTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class PenTool: UIBezierPath, SketchTool {

func draw() {
guard let ctx = UIGraphicsGetCurrentContext() else { return }

ctx.setShouldAntialias(false)
switch drawingPenType {
case .normal:
ctx.addPath(path)
Expand Down Expand Up @@ -107,7 +107,7 @@ class PenTool: UIBezierPath, SketchTool {
class EraserTool: PenTool {
override func draw() {
guard let ctx = UIGraphicsGetCurrentContext() else { return }

ctx.setShouldAntialias(false)
ctx.saveGState()
ctx.addPath(path)
ctx.setLineCap(.round)
Expand Down

0 comments on commit e385c1b

Please sign in to comment.