Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,18 @@ let package = Package(
)
```

When importing Plot in a package, you need to give it a name to reference it:

```swift
dependencies: [
.package(name: "Plot", url: "https://github.com/johnsundell/plot.git", from: "0.9.0")
],
...
dependencies: [
"Plot"
],
```

Then import Plot wherever you’d like to use it:

```swift
Expand Down Expand Up @@ -588,4 +600,4 @@ This project does [not come with GitHub Issues-based support](CONTRIBUTING.md#bu

If you wish to make a change, [open a Pull Request](https://github.com/JohnSundell/Plot/pull/new) — even if it just contains a draft of the changes you’re planning, or a test that reproduces an issue — and we can discuss it further from there. See [Plot’s contribution guide](CONTRIBUTING.md) for more information about how to contribute to this project.

Hope you’ll enjoy using Plot!
Hope you’ll enjoy using Plot!