Skip to content

Commit

Permalink
border width needs to be divided by 2 as well
Browse files Browse the repository at this point in the history
i'll add some pictures in a second
  • Loading branch information
paulmars committed Aug 2, 2016
1 parent 3f9d670 commit 88b1360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UAProgressView.m
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ - (UIBezierPath *)layoutPath {
CGFloat width = self.frame.size.width;
CGFloat borderWidth = self.shapeLayer.borderWidth;
return [UIBezierPath bezierPathWithArcCenter:CGPointMake(width/2.0f, width/2.0f)
radius:width/2.0f - borderWidth
radius:(width-borderWidth)/2.0f
startAngle:startAngle
endAngle:endAngle
clockwise:YES];
Expand All @@ -376,4 +376,4 @@ - (void)updatePath:(CGFloat)progress {
[CATransaction commit];
}

@end
@end

0 comments on commit 88b1360

Please sign in to comment.