createGIF(with: [UIImage(named: "img1"), UIImage(named: "img2")], 0.15) { (data, error) -> () in
if error == nil {
// do something with the data
}
}
A better example would be to fetch a couple of images from a source somewhere.
SwiftGIF is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SwiftGIF"
Simon Westerlund, s@simonwesterlund.se, @wesslansimon
SwiftGIF is available under the WTFPL license. See the LICENSE file for more info.