how to make dynamical strokeColor in CAShapeLayer? In Swift
问题 I use six parameters (as active, inactive, wired, compressed, free and total). I make a class of CAShapeLayer and I made one function in there with help I can draw circle just add parameters. I make CGPath and add it six once in function which draw a circle. I get the 5 layers to UIView . I make timer which update data in one second but it add else 5 layer to UIView . It is wrong way. I want to animate arcs with data and update in one second. when layers become too much device is working