Skip to content

Commit fc2700c

Browse files
Merge pull request #7 from karimhm/update-README.md
Add Swift PM installation instructions
2 parents 6edb43a + 6eb0f22 commit fc2700c

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,20 @@ This podspec uses a [fork of libidn](https://github.com/chrisballinger/libidn/co
1818
To run the example project, clone the repo, and run `pod install` from the Example directory first.
1919

2020
## Installation
21+
### Swift Package Manager
22+
libidn is available through [Swift Package Manager](https://swift.org/package-manager). To install
23+
it, simply add the following to your **`Package.swift`**:
24+
25+
```swift
26+
dependencies: [
27+
.package(url: "https://github.com/chrisballinger/libidn-framework.git", .upToNextMajor(from: "x.x.x"))
28+
]
29+
```
30+
> Make sure to replace `x.x.x` with the appropriate version number.
2131
22-
libidn is available through [CocoaPods](http://cocoapods.org). To install
23-
it, simply add the following line to your Podfile:
32+
### CocoaPods
33+
libidn is available through [CocoaPods](https://cocoapods.org). To install
34+
it, simply add the following line to your **`Podfile`**:
2435

2536
```ruby
2637
pod "libidn"
@@ -44,4 +55,4 @@ Upgrading libidn:
4455

4556
## License
4657

47-
libidn is available under the LGPL license, but the podspec and example code in this repo is MIT. See `LICENSE` for more details.
58+
libidn is available under the LGPL license, but the podspec and example code in this repo is MIT. See `LICENSE` for more details.

0 commit comments

Comments
 (0)