maxkonovalov / MKRingProgressView

⭕️ Ring progress view similar to Activity app on Apple Watch
MIT License
1.57k stars 136 forks source link

Blinking in Collection View #54

Open Moriquendi opened 5 years ago

Moriquendi commented 5 years ago

I notice rings 'blinking' when I put them in collection view.

When I reload data, cells are reused and updated with the new progress. However, I can see that the ring is presenting the old values and its progress is updated after few miliseconds.

I'm still debuging this but it seems to be connected with MKRingProgressLayer trying to animate the progress even though it's not in a UIView.animate { ... }.

Moriquendi commented 5 years ago

Indeed, when I force set disableProgressAnimation property to true, the problem is gone.