Skip to content

Commit

Permalink
Adds SPM instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfurrow committed Sep 3, 2021
1 parent 2c79172 commit 8191e4f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,25 @@ Then run:
$ carthage bootstrap --platform iOS --toolchain com.apple.dt.toolchain.Swift_3_0
```

## Swift Package Manager

To add `Nimble-Snapshots` as a dependency, you have to add it to the dependencies of your `Package.swift` file and refer to that dependency in your target.

```swift
import PackageDescription
let package = Package(
name: "<Your Product Name>",
dependencies: [
.package(url: "https://github.com/ashfurrow/Nimble-Snapshots", .upToNextMajor(from: "9.0.0"))
],
targets: [
.target(
name: "<Your Target Name>",
dependencies: ["Nimble-Snapshots"]),
]
)
```

Use
---

Expand Down

0 comments on commit 8191e4f

Please sign in to comment.