A plugin for Nuke to display AVIF images.
Based on https://github.com/ryokosuge/Nuke-WebP-Plugin
The plugin features a pre-configured Nuke.Manager with AVIF support, and an AVIFImage:
import Nuke
import NukeAVIFPlugin
AVIFImageDecoder.enable()
let imageView = UIImageView()
let avifimageURL = URL(string: "https://example.com/sample.avif")!
Nuke.loadImage(with: url, into: imageView)
pod 'Nuke-AVIF-Plugin', :git => 'https://github.com/delneg/Nuke-AVIF-Plugin.git'
github 'delneg/Nuke-AVIF-Plugin'
Go to File / Swift Packages / Add Package Dependency…
and enter package repository URL https://github.com/delneg/Nuke-AVIF-Plugin.git, then select the latest exact version (0.9.3)
at the time of writing.
Swift | Xcode | iOS | macOS | tvOS | watchOS |
---|---|---|---|---|---|
5.1, 5.2 | 11.0 | 11.0 | 10.13 | 11.0 | 4.0 |
Nuke | libavif |
---|---|
>= 9.0 | v0.9.3 |
Nuke-AVIF-Plugin is available under the MIT license. See the LICENSE file for more info.