Update README.md

Add instructions for adding as Swift Package Manager dependency.
This commit is contained in:
Mathew Polzin
2019-09-02 15:05:23 -07:00
committed by GitHub
parent 6c54845525
commit 0cc2368331
+7
View File
@@ -27,6 +27,7 @@ See the JSON API Spec here: https://jsonapi.org/format/
- [Caveat](#caveat)
- [Dev Environment](#dev-environment)
- [Prerequisites](#prerequisites)
- [Swift Package Manager](#swift-package-manager)
- [CocoaPods](#cocoapods)
- [Xcode project](#xcode-project)
- [Running the Playground](#running-the-playground)
@@ -100,6 +101,12 @@ If you find something wrong with this library and it isn't already mentioned und
1. Swift 4.2+
2. Swift Package Manager *OR* Cocoapods
### Swift Package Manager
Just include the following in your package's dependencies and add `JSONAPI` to the dependencies for any of your targets.
```
.package(url: "https://github.com/mattpolzin/JSONAPI.git", .upToNextMajor(from: "1.0.0"))
```
### CocoaPods
To use this framework in your project via Cocoapods instead of Swift Package Manager, add the following dependencies to your Podfile.
```