To run the example project, clone the repo, and run pod install
from the Example directory first.
ezgif.swift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ezgif'
let imageTodoUrl: String = "https://img.zcool.cn/community/01639c586c91bba801219c77f6efc8.gif"
Ezgif.shared.optimize(imageUrl: imageTodoUrl) { newFileUrl, error in
if let error = error {
printLog("Ezgif.shared.optimize error: \(error.localizedDescription)")
} else {
printLog("Ezgif.shared.optimize newFileUrl: \(newFileUrl ?? "")")
}
}
EyreFree, eyrefree@eyrefree.org
ezgif.swift is available under the MIT license. See the LICENSE file for more info.