From 0cc2368331b791e0b88fca89ec6dc9f7adcf6c97 Mon Sep 17 00:00:00 2001 From: Mathew Polzin Date: Mon, 2 Sep 2019 15:05:23 -0700 Subject: [PATCH] Update README.md Add instructions for adding as Swift Package Manager dependency. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 3617ee7..e447620 100644 --- a/README.md +++ b/README.md @@ -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. ```