Skip to content

Commit 62df9a5

Browse files
authored
Merge pull request #5 from sideeffect-io/feature/installation-instructions
project: add installation instructions
2 parents d6fce74 + 0c8d315 commit 62df9a5

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ let stateMachine = StateMachine(initial: .state1) {
2222
}
2323
```
2424

25+
## Installation
26+
27+
```swift
28+
let package = Package(
29+
name: "Example",
30+
dependencies: [
31+
.package(url: "https://github.com/sideeffect-io/AsyncStateMachine.git", .upToNextMajor(from: "0.0.1"))
32+
],
33+
targets: [
34+
.target(name: "Example", dependencies: ["AsyncStateMachine"])
35+
]
36+
)
37+
```
38+
2539
## Key points:
2640
- Each feature is a [Moore state machine](https://en.wikipedia.org/wiki/Moore_machine): no need for a global store
2741
- State machines are declarative: a DSL offers a natural and concise syntax

0 commit comments

Comments
 (0)