Extension Rotating Image Smoothly with Swift 4

Do you ever want to do animation thing like rotating image continuously ? Today I want to give you a good way to do it. I make this a extension so it's easily to maintain :D. I found this trick on stackoverflow and implement it using swift.

Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

So the code goes like this :

Reference : https://stackoverflow.com/a/24334696/2899321

If you have any question feel free to ask :D.

Popular posts from this blog

Missing system image Android Studio solution

How to restart the app with flutter Android and iOS

How to get thumbnail from video URL in Swift 5