@@ -228,7 +228,7 @@ - (void)performAction:(M13ProgressViewAction)action animated:(BOOL)animated
228
228
[self setNeedsDisplay ];
229
229
[CATransaction begin ];
230
230
for (int i = 0 ; i < _numberOfSegments; i++) {
231
- CAShapeLayer *layer = _segmentsLayer.sublayers [i];
231
+ CAShapeLayer *layer = ( CAShapeLayer *) _segmentsLayer.sublayers [i];
232
232
CABasicAnimation *barAnimation = [self barColorAnimation ];
233
233
barAnimation.fromValue = (id )layer.fillColor ;
234
234
barAnimation.toValue = (id )[self colorForSegment: i].CGColor ;
@@ -240,7 +240,7 @@ - (void)performAction:(M13ProgressViewAction)action animated:(BOOL)animated
240
240
[self setNeedsDisplay ];
241
241
[CATransaction begin ];
242
242
for (int i = 0 ; i < _numberOfSegments; i++) {
243
- CAShapeLayer *layer = _segmentsLayer.sublayers [i];
243
+ CAShapeLayer *layer = ( CAShapeLayer *) _segmentsLayer.sublayers [i];
244
244
CABasicAnimation *barAnimation = [self barColorAnimation ];
245
245
barAnimation.fromValue = (id )layer.fillColor ;
246
246
barAnimation.toValue = (id )_successColor.CGColor ;
@@ -252,7 +252,7 @@ - (void)performAction:(M13ProgressViewAction)action animated:(BOOL)animated
252
252
[self setNeedsDisplay ];
253
253
[CATransaction begin ];
254
254
for (int i = 0 ; i < _numberOfSegments; i++) {
255
- CAShapeLayer *layer = _segmentsLayer.sublayers [i];
255
+ CAShapeLayer *layer = ( CAShapeLayer *) _segmentsLayer.sublayers [i];
256
256
CABasicAnimation *barAnimation = [self barColorAnimation ];
257
257
barAnimation.fromValue = (id )layer.fillColor ;
258
258
barAnimation.toValue = (id )_failureColor.CGColor ;
@@ -450,7 +450,7 @@ - (void)drawProgress
450
450
}
451
451
452
452
// Add segment to the proper layer, and color it
453
- CAShapeLayer *layer = _segmentsLayer.sublayers [i];
453
+ CAShapeLayer *layer = ( CAShapeLayer *) _segmentsLayer.sublayers [i];
454
454
layer.path = path.CGPath ;
455
455
layer.fillColor = [self colorForSegment: i].CGColor ;
456
456
}
@@ -529,7 +529,7 @@ - (void)drawIndeterminate
529
529
}
530
530
531
531
// Add the segment to the proper path //Add segment to the proper layer, and color it
532
- CAShapeLayer *layer = _segmentsLayer.sublayers [i];
532
+ CAShapeLayer *layer = ( CAShapeLayer *) _segmentsLayer.sublayers [i];
533
533
layer.path = path.CGPath ;
534
534
if (i >= indeterminateIndex && i < indeterminateIndex + numberOfSegmentsToBeColored) {
535
535
layer.fillColor = ((UIColor *)segmentColorsPrimary[i]).CGColor ;
0 commit comments