diff --git a/README.md b/README.md index e51ddd9..9bca7f5 100644 --- a/README.md +++ b/README.md @@ -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: "", dependencies: [ + .product(name: "EnumeratorMacro", package: "EnumeratorMacro"), +]), +``` + +Finally, add `import EnumeratorMacro` to your source code.