Skip to content

Commit

Permalink
Add Swift Package Manager instructions to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Ballard committed Feb 19, 2016
1 parent d0b0b84 commit 961d6f9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ Installing as a framework requires a minimum of iOS 8, OS X 10.9, watchOS 2.0, o

## Installation

### Carthage

To install using [Carthage][], add the following to your Cartfile:

```
Expand All @@ -120,6 +122,20 @@ github "postmates/PMJSON" ~> 0.9.1

Once installed, you can use this by adding `import PMJSON` to your code.

### Swift Package Manager

When using a recent Swift development snapshot, the [Swift Package Manager][] may be used to install PMJSON by adding it to your `dependencies` list:

```swift
let package = Package(
name: "YourPackage",
dependencies: [
.Package(url: "https://github.com/postmates/PMJSON.git",
versions: Version(major: 0, minor: 9, patch: 1)..<Version(major: 0, minor: 10, patch: 0))
]
)
```

## License

Licensed under either of
Expand Down

0 comments on commit 961d6f9

Please sign in to comment.