GIFFromImages is an opensource Swift library that converts UIImage arrays to GIF images.
Platform | Installation |
---|---|
iOS 12.0+ | CocoaPods |
GIFFromImages is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'GIFFromImages'
import UIKit
import GIFFromImages
class ViewController: UIViewController {
var gifManager = GIFFromImages()
var images: [UIImage] = []
override func viewDidLoad() {
super.viewDidLoad()
var gifURL = gifManager.makeFileURL(filename: "example")
gifManager.generateGifFromImages(images: images, fileURL: gifURL, colorSpace: .rgb, delayTime: 1.0, loopCount: 0)
}
}
GIFFromImages is available under the MIT license. See the LICENSE file for more info.