createGIF(with: [UIImage(named: "img1"), UIImage(named: "img2")], 0.15) { (data, error) -> () in
if error == nil {
// do something with the data
}
}
更好的例子是从某个地方获取一些图片。
Simon Westerlund,[email protected]
SwiftGIF 基于 WTFPL 许可证。有关更多信息,请参阅 LICENSE 文件。