Skip to content

Commit

Permalink
Fixed a merge conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Rolf committed May 9, 2017
1 parent 5bf832d commit 42bdb00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CircleProgressView/CircleProgressView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ import UIKit
if roundedCap {
let capCenter = CGPoint(x: center.x + r * cos(endAngle), y: center.y + r * sin(endAngle))

progressPath.addArc(withCenter: capCenter, radius: trackWidth * 0.5, startAngle: endAngle, endAngle: endAngle + CGFloat(M_PI), clockwise: !clockwise)
progressPath.addArc(withCenter: capCenter, radius: trackWidth * 0.5, startAngle: endAngle, endAngle: endAngle + CGFloat(Double.pi), clockwise: !clockwise)
}
progressPath.addArc(withCenter: center, radius:radius-trackWidth, startAngle:endAngle, endAngle:startAngle, clockwise:clockwise)

if roundedCap {
let capCenter = CGPoint(x: center.x + r * cos(startAngle), y: center.y + r * sin(startAngle))

progressPath.addArc(withCenter: capCenter, radius: trackWidth * 0.5, startAngle: startAngle, endAngle: startAngle + CGFloat(M_PI), clockwise: clockwise)
progressPath.addArc(withCenter: capCenter, radius: trackWidth * 0.5, startAngle: startAngle, endAngle: startAngle + CGFloat(Double.pi), clockwise: clockwise)
}
progressPath.close()

Expand Down

0 comments on commit 42bdb00

Please sign in to comment.