Skip to content

Commit 7e92c06

Browse files
committed
update the readme about SwiftPM
1 parent d1c79f7 commit 7e92c06

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

Package.resolved

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"package": "SDWebImage",
66
"repositoryURL": "https://github.com/SDWebImage/SDWebImage.git",
77
"state": {
8-
"branch": "master",
9-
"revision": "09f06159a3284f6981d5495728e5c3cb3dfb82fa",
10-
"version": null
8+
"branch": null,
9+
"revision": "0a3cd255a655b73fb3b3437acf2ab506b5c0c9c6",
10+
"version": "5.1.0"
1111
}
1212
}
1313
]

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![License](https://img.shields.io/cocoapods/l/SDWebImagePhotosPlugin.svg?style=flat)](https://cocoapods.org/pods/SDWebImagePhotosPlugin)
66
[![Platform](https://img.shields.io/cocoapods/p/SDWebImagePhotosPlugin.svg?style=flat)](https://cocoapods.org/pods/SDWebImagePhotosPlugin)
77
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/SDWebImage/SDWebImagePhotosPlugin)
8+
[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-Compatible-brightgreen.svg)](https://swift.org/package-manager/)
89
[![codecov](https://codecov.io/gh/SDWebImage/SDWebImagePhotosPlugin/branch/master/graph/badge.svg)](https://codecov.io/gh/SDWebImage/SDWebImagePhotosPlugin)
910

1011
## What's for
@@ -39,6 +40,18 @@ SDWebImagePhotosPlugin is available through [Carthage](https://github.com/Cartha
3940
github "SDWebImage/SDWebImagePhotosPlugin"
4041
```
4142

43+
#### Swift Package Manager
44+
45+
SDWebImagePhotosPlugin is available through [Swift Package Manager](https://swift.org/package-manager).
46+
47+
```swift
48+
let package = Package(
49+
dependencies: [
50+
.package(url: "https://github.com/SDWebImage/SDWebImagePhotosPlugin.git", from: "0.3")
51+
]
52+
)
53+
```
54+
4255
## Usage
4356
**Important!** To use Photos Library plugin. Firstly you need to register the photos loader to image manager.
4457

0 commit comments

Comments
 (0)