Skip to content

Commit

Permalink
Add Swift Package Manager instructions to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Mar 22, 2018
1 parent 5d3afa1 commit 3ebd80b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ To integrate Signals into your project using Carthage add the following to your
github "artman/Signals" ~> 5.0
```

#### Swift Package Manager

To integrate Signals into your project using SwiftPM add the following to your `Package.swift`:

```swift
dependencies: [
.package(url: "https://github.com/artman/Signals", from: "5.0"),
],
```

## Quick start

Make events on a class observable by creating one or more signals:
Expand Down Expand Up @@ -127,7 +137,7 @@ self.onData.fire((data:receivedData, error:receivedError))

// You can use the => operator to fire the signal
self.onData => (data:receivedData, error:receivedError)

// Also works for signals without tuples
self.onProgress => 1.0
```
Expand Down

0 comments on commit 3ebd80b

Please sign in to comment.