Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yaslab committed Aug 14, 2024
1 parent 6356b18 commit cc67a93
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,29 @@ The documentation is available on [Swift Package Index](https://swiftpackageinde

### Swift Package Manager

```
.package(url: "https://github.com/yaslab/Hex.swift.git", from: "1.0.0")
Add the dependency to your `Package.swift`. For example:

```swift
// swift-tools-version: 5.7

import PackageDescription

let package = Package(
name: "MyPackage",
dependencies: [
// Add `Hex.swift` package here.
.package(url: "https://github.com/yaslab/Hex.swift.git", from: "1.0.0")
],
targets: [
.executableTarget(
name: "MyCommand",
dependencies: [
// Then add it to your module's dependencies.
.product(name: "Hex", package: "Hex.swift")
]
)
]
)
```

## License
Expand Down

0 comments on commit cc67a93

Please sign in to comment.