File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44[ ![ Version] ( https://img.shields.io/cocoapods/v/SDWebImageAVIFCoder.svg?style=flat )] ( https://cocoapods.org/pods/SDWebImageAVIFCoder )
55[ ![ License] ( https://img.shields.io/cocoapods/l/SDWebImageAVIFCoder.svg?style=flat )] ( https://cocoapods.org/pods/SDWebImageAVIFCoder )
66[ ![ Platform] ( https://img.shields.io/cocoapods/p/SDWebImageAVIFCoder.svg?style=flat )] ( https://cocoapods.org/pods/SDWebImageAVIFCoder )
7+ [ ![ SwiftPM compatible] ( https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg?style=flat )] ( https://swift.org/package-manager/ )
78[ ![ Carthage compatible] ( https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat )] ( https://github.com/SDWebImage/SDWebImageAVIFCoder )
89
910## What's for
@@ -83,6 +84,22 @@ SDWebImageAVIFCoder is available through [Carthage](https://github.com/Carthage/
8384github "SDWebImage/SDWebImageAVIFCoder"
8485```
8586
87+ Carthage does not support like CocoaPods' subspec, it only supports libaom for AVIF decoding && encoding.
88+
89+ #### Swift Package Manager (Xcode 11+)
90+
91+ SDWebImageAVIFCoder is available through [ Swift Package Manager] ( https://swift.org/package-manager ) .
92+
93+ The framework through SwiftPM only supports libaom for AVIF decoding && encoding.
94+
95+ ``` swift
96+ let package = Package (
97+ dependencies : [
98+ .package (url : " https://github.com/SDWebImage/SDWebImageAVIF.git" , from : " 0.5" )
99+ ]
100+ )
101+ ```
102+
86103## Usage
87104
88105To use AVIF coder, you should firstly add the ` SDImageAVIFCoder.sharedCoder ` to the coders manager. Then you can call the View Category method to start load AVIF images.
You can’t perform that action at this time.
0 commit comments