Swift SDK

Installation

How to install and set up zksync2-swift for your project.

Setting up zksync2-swift in your project is straightforward. Follow these steps to integrate the SDK into your Swift application.

Prerequisites

  • iOS: >= 13.0
  • macOS: >= 11.0
Check out the Swift installation guide for more information.

CocoaPods integration

To install zksync2-swift via CocoaPods, add the zksync2-swift pod to your Podfile:

pod 'zksync2-swift'

Then, run the following command in your terminal:

pod install

Swift package manager integration

To install zksync2-swift via Swift Package Manager, add zksync2-swift to your Package Dependencies:

  1. Open your project in Xcode.
  2. Select File > Swift Packages > Add Package Dependency.
  3. Enter the following URL:
    https://github.com/zksync-sdk/zksync2-swift.git
    
  4. Choose the latest version of the package.

Made with ❤️ by the ZKsync Community