Skip to content

Commit 7ecaf97

Browse files
committed
Update the readme about SwiftPM
1 parent f5c1ea3 commit 7ecaf97

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
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/
8384
github "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

88105
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.

0 commit comments

Comments
 (0)