this fixed a bug where the component didn't update proper on tint color change
- (void)setTintColor:(UIColor *)tintColor {
if (![_tintColor isEqual:tintColor]) {
_tintColor = tintColor;
[self setupAnimation];
// CGColorRef tintColorRef = tintColor.CGColor;
// for (CALayer *sublayer in _animationLayer.sublayers) {
// sublayer.backgroundColor = tintColorRef;
//
// if ([sublayer isKindOfClass:[CAShapeLayer class]]) {
// CAShapeLayer *shapeLayer = [[CAShapeLayer alloc] init];
// shapeLayer.strokeColor = tintColorRef;
// shapeLayer.fillColor = tintColorRef;
// }
// }
}
}
this fixed a bug where the component didn't update proper on tint color change