Skip to main content

Overview

The Dynamic Swift SDK provides a comprehensive API for building Web3-enabled iOS applications. This reference documents all the modules, functions, and types available in the SDK.

Requirements

  • iOS 15.5+
  • Xcode 14.0+
  • Swift 5.9+

Installation

SDK Architecture

The SDK uses a singleton pattern with modular access to different functionalities:

Core Modules

Initialization

Authentication (sdk.auth)

Wallets (sdk.wallets)

EVM Operations (sdk.evm)

Solana Operations (sdk.solana)

Networks (sdk.networks)

MFA (sdk.mfa)

Passkeys (sdk.passkeys)

Built-in UI (sdk.ui)

Data Types

ClientProps

BaseWallet

UserProfile

PhoneData

EthereumTransaction

WriteContractInput

GenericNetwork

Error Handling

All async functions can throw errors. Use Swift’s native error handling:

Quick Reference Example

Session State Management

For production apps, use a view model for better state management:
Complete Example App: For a fully functional iOS app demonstrating all SDK features, check out our Swift SDK Repository.
Last modified on April 3, 2026