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

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 13 additions & 0 deletions
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)