Manish patel Manish patel - 8 months ago 57
Git Question

Can i show GIF images in UIImageView in IOS10?

i have used gif image to show in UIImageView but there are showing only static images.what is the reason behined it i don't know.

so somebody please help me to solve this.

Answer Source

I recommend you to use SwiftGif.

Import the Gif.swift in your project and do the following:

// Returns an animated UIImage
let jeremyGif = UIImage.gifWithName("jeremy")

// Use the UIImage in your UIImageView
let imageView = UIImageView(image: jeremyGif)

For Objective c You can use this FLAnimatedImage