Installation
Swift implementation of WalletConnect Web3Wallet SDK for native iOS applications.
Getting started with wallet integration​
Set up a project​
In order to connect to WalletConnect Cloud, you need to create a new project first:
- Go to https://cloud.walletconnect.com/app
- Tap New Project
- Give it a name and tap Create button
- Your new project should appear on the projects list
- You should see a project ID string if you tap on your project
Add SDK for your project​
SwiftPackageManager​
You can add a WalletConnect SDK to your project with Swift Package Manager. In order to do that:
- Open XCode
- Go to File -> Add Packages
- Paste the repo GitHub url: https://github.com/WalletConnect/WalletConnectSwiftV2
- Tap Add Package
- Select WalletConnect check mark
Cocoapods​
- Update Cocoapods spec repos. Type in terminal
pod repo update
- Initialize Podfile if needed with
pod init
- Add pod to your Podfile:
pod 'WalletConnectSwiftV2'
- Install pods with
pod install
If you encounter any problems during package installation, you can specify the exact path to the repository
pod 'WalletConnectSwiftV2', :git => 'https://github.com/WalletConnect/WalletConnectSwiftV2.git', :tag => '1.0.5'