Skip to main content

Installation

SwiftPackageManager

You can add AppKit to your project with Swift Package Manager. In order to do that:

  1. Open Xcode
  2. Go to File -> Add Packages
  3. Paste the repo GitHub url: https://github.com/WalletConnect/web3modal-swift
  4. Tap Add Package
  5. Choose the Web3Modal products that you want installed in your app.

Alternatively, add Web3Modal to a Package.swift manifest

To integrate via a Package.swift manifest instead of Xcode, you can add Web3Modal to the dependencies array of your package:

dependencies: [
.package(
name: "Web3Modal",
url: "https://github.com/WalletConnectV2/web3modal-swift.git",
.upToNextMajor(from: "1.0.13")
),

// Any other dependencies you have...
],

Then, in any target that depends on a Web3Modal product, add it to the dependencies array of that target:

.target(
name: "MyTargetName",
dependencies: [
// The product(s) you want (most likely Web3Modal).
.product(name: "Web3Modal", package: "Web3Modal"),
]
),