SwiftGif - UIImage 的 Gif 扩展
MIT
iOS
Swift
软件简介
SwiftGif 是 Swift 对 UIImage 的扩展,实现了 Gif 动画图像的支持。
示例代码:
// jeremy.gif
var url = NSBundle.mainBundle().URLForResource("jeremy", withExtension: "gif")
var imageData = NSData(contentsOfURL: url)
// Returns an animated UIImage
UIImage.animatedImageWithData(imageData)