Skip to content
Snippets Groups Projects
Commit 409d5840 authored by Max von Webel's avatar Max von Webel
Browse files

fix spinner

parent 9f4b32b0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -149,8 +149,8 @@ static CGFloat DegreesToRadians(double radians) {
 
for (NSInteger i = 0; i < self.numberOfSteps; i++) {
CGFloat currentAngle = initialAngle - DegreesToRadians(anglePerStep) * i;
[[_color colorWithAlphaComponent:1.0 - sqrt(i) * 0.25] set];
[[_color colorWithAlphaComponent:1.0 - sqrt(self.numberOfSteps - 1 - i) * 0.25] set];
outerPoint = NSMakePoint(center.x + cos(currentAngle) * outerRadius,
center.y + sin(currentAngle) * outerRadius);
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment