Nuke-WebP-Plugin
Nuke的WebP插件,允许您加载和显示WebP图像。您可以在项目内包含的演示中自行查看。
使用
该插件包含一个预设的带有WebP支持的Nuke.Manager和一个WebPImage
import Nuke
import NukeWebPPlugin
WebPImageDecoder.enable()
let imageView = UIImageView()
let webpimageURL = URL(string: "https://example.com/sample.webp")!
Nuke.loadImage(with: url, into: imageView)
安装
CocoaPods
pod 'Nuke-WebP-Plugin'
Carthage
github 'ryokosuge/Nuke-WebP-Plugin'
最低需求
Swift | Xcode | iOS | macOS | tvOS | watchOS |
---|---|---|---|---|---|
5.1, 5.2 | 11.0 | 11.0 | 10.13 | 11.0 | 4.0 |
依赖项
Nuke | libwebp |
---|---|
>= 9.0 | v1.0.0 |
作者
ryokosuge, [email protected]
许可证
Nuke-WebP-Plugin遵循MIT许可证。更多信息,请参阅LICENSE文件。