MBCircularProgressBar icon indicating copy to clipboard operation
MBCircularProgressBar copied to clipboard

Animation not working

Open nitinlandge opened this issue 4 years ago • 2 comments

UIView.animate(withDuration: 1) { self.yellowView.value = 80 }

nitinlandge avatar Jan 12 '21 13:01 nitinlandge

UIView.animate(withDuration: 1) { self.yellowView.value = 80 }

hi, You must put it into main thread for animation. DispatchQueue.main.async { //[.repeat, .curveEaseOut, .autoreverse] UIView.animate(withDuration: 0.5, delay: 0.3, options: [.curveLinear], animations: { self. yellowView.value = 80.0 }, completion: nil) } https://ibb.co/gSxCZY4

hkbk avatar Jan 14 '21 03:01 hkbk

Thanks for your reply.

I already added it in main thread and its working properly.

The pod you have made is really helpful and simple to use.

Thank you so much.

On Thu, Jan 14, 2021, 8:55 AM HungNT [email protected] wrote:

UIView.animate(withDuration: 1) { self.yellowView.value = 80 }

hi, You must put it into main thread for animation.

DispatchQueue.main.async { //[.repeat, .curveEaseOut, .autoreverse] UIView.animate(withDuration: 0.5, delay: 0.3, options: [.curveLinear], animations: { self. yellowView.value = 80.0 }, completion: nil) }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MatiBot/MBCircularProgressBar/issues/89#issuecomment-759900740, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4FGDXCFJOELB3QZX2G2M3SZZP2LANCNFSM4V7GVMOQ .

nitinlandge avatar Jan 14 '21 04:01 nitinlandge