Skip to content

Commit

Permalink
Add installation section
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM authored Jul 10, 2024
1 parent 75cefd7 commit f72e30a
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 @@ -123,3 +123,22 @@ enum TestEnum {
}
}
```

## How To Add EnumeratorMacro To Your Project

To use the `EnumeratorMacro` library in a SwiftPM project,
add the following line to the dependencies in your `Package.swift` file:

```swift
.package(url: "https://github.com/MahdiBM/EnumeratorMacro", branch: "main"),
```

Include `EnumeratorMacro` as a dependency for your targets:

```swift
.target(name: "<target>", dependencies: [
.product(name: "EnumeratorMacro", package: "EnumeratorMacro"),
]),
```

Finally, add `import EnumeratorMacro` to your source code.

0 comments on commit f72e30a

Please sign in to comment.