swiftgif / SwiftGif

[UNMAINTAINED] 🌠 A small UIImage extension with gif support
MIT License
1.33k stars 306 forks source link

Showing the last image on the animation completion. #59

Closed niennonno closed 6 years ago

niennonno commented 7 years ago

I have a gif which I am running for one cycle of animation. Once the animation is completed, I want to freeze the last animation image on my imageView. How can I achieve that?

niennonno commented 6 years ago

Figured out.

After the completion, pick out the last image from the array and set it in the following manner: imageView.image = imageArray.last