Skip to content

Commit 61a8f6c

Browse files
committed
swapped the order of spm and cocoapods
1 parent 705704c commit 61a8f6c

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
- [Core features](#core-features)
2121
- [Installation](#installation)
22-
- [CocoaPods](#cocoapods)
2322
- [Swift Package](#swift-package)
23+
- [CocoaPods](#cocoapods)
2424
- [Example usage](#example-usage)
2525
- [Send Ether](#send-ether)
2626
- [Contract read method](#contract-read-method)
@@ -66,6 +66,24 @@
6666

6767
## Installation
6868

69+
### Swift Package
70+
The [Swift Package Manager](https://swift.org/package-manager/ "") is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
71+
72+
Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
73+
```swift
74+
dependencies: [
75+
.package(url: "https://github.com/web3swift-team/web3swift.git", .upToNextMajor(from: "3.0.0"))
76+
]
77+
```
78+
79+
## Example usage
80+
In the imports section:
81+
82+
```swift
83+
import web3swift
84+
import Web3Core
85+
```
86+
6987
### CocoaPods
7088

7189
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
@@ -91,23 +109,6 @@ Then, run the following command:
91109
$ pod install
92110
```
93111

94-
### Swift Package
95-
The [Swift Package Manager](https://swift.org/package-manager/ "") is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
96-
97-
Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
98-
```swift
99-
dependencies: [
100-
.package(url: "https://github.com/web3swift-team/web3swift.git", .upToNextMajor(from: "3.0.0"))
101-
]
102-
```
103-
104-
## Example usage
105-
In the imports section:
106-
107-
```swift
108-
import web3swift
109-
import Web3Core
110-
```
111112

112113
### Send Ether
113114
```swift

0 commit comments

Comments
 (0)