Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation not working #89

Open
nitinlandge opened this issue Jan 12, 2021 · 2 comments
Open

Animation not working #89

nitinlandge opened this issue Jan 12, 2021 · 2 comments

Comments

@nitinlandge
Copy link

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

@hkbk
Copy link

hkbk commented Jan 14, 2021

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

@nitinlandge
Copy link
Author

nitinlandge commented Jan 14, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants