Kingfisher Documentation

Class GIFAnimated​Image

public class GIFAnimatedImage  

Represents the decoding for a GIF image. This class extracts frames from an imageSource, then hold the images for later use.

Methods

get​Frame​Duration(from:​)

public static func getFrameDuration(from gifInfo: [String: Any]?) -> TimeInterval  

Calculates frame duration for a gif frame out of the kCGImagePropertyGIFDictionary dictionary.

get​Frame​Duration(from:​at:​)

public static func getFrameDuration(from imageSource: CGImageSource, at index: Int) -> TimeInterval  

Calculates frame duration at a specific index for a gif from an imageSource.