Update the README to place the SwiftPM before CocoaPods, where SwiftUI user prefers more

This commit is contained in:
DreamPiggy 2020-04-05 12:22:22 +08:00
parent 395f0e61f9
commit 43c418de78
1 changed files with 17 additions and 17 deletions

View File

@ -59,23 +59,6 @@ All issue reports, feature requests, contributions, and GitHub stars are welcome
## Installation
#### CocoaPods
SDWebImageSwiftUI is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'SDWebImageSwiftUI'
```
#### Carthage
SDWebImageSwiftUI is available through [Carthage](https://github.com/Carthage/Carthage).
```
github "SDWebImage/SDWebImageSwiftUI"
```
#### Swift Package Manager
SDWebImageSwiftUI is available through [Swift Package Manager](https://swift.org/package-manager/).
@ -96,6 +79,23 @@ let package = Package(
)
```
#### CocoaPods
SDWebImageSwiftUI is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'SDWebImageSwiftUI'
```
#### Carthage
SDWebImageSwiftUI is available through [Carthage](https://github.com/Carthage/Carthage).
```
github "SDWebImage/SDWebImageSwiftUI"
```
## Usage
### Using `WebImage` to load network image