You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 ***@***.***> 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
<#89 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD4FGDXCFJOELB3QZX2G2M3SZZP2LANCNFSM4V7GVMOQ>
.
UIView.animate(withDuration: 1) {
self.yellowView.value = 80
}
The text was updated successfully, but these errors were encountered: