File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 4
4
[ ![ Version] ( https://img.shields.io/cocoapods/v/SDWebImageAVIFCoder.svg?style=flat )] ( https://cocoapods.org/pods/SDWebImageAVIFCoder )
5
5
[ ![ License] ( https://img.shields.io/cocoapods/l/SDWebImageAVIFCoder.svg?style=flat )] ( https://cocoapods.org/pods/SDWebImageAVIFCoder )
6
6
[ ![ 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/ )
7
8
[ ![ Carthage compatible] ( https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat )] ( https://github.com/SDWebImage/SDWebImageAVIFCoder )
8
9
9
10
## What's for
@@ -83,6 +84,22 @@ SDWebImageAVIFCoder is available through [Carthage](https://github.com/Carthage/
83
84
github "SDWebImage/SDWebImageAVIFCoder"
84
85
```
85
86
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
+
86
103
## Usage
87
104
88
105
To 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