Skip to main content

DynamicSDK.initialize

Initialize the Dynamic SDK. This must be called once at app launch, before any SwiftUI views access the SDK.

Parameters

  • props (ClientProps) - Configuration object with environment settings

Returns

  • DynamicSDK - Initialized SDK instance

Example

DynamicSDK.instance

Get the SDK singleton instance. Only call after initialize() has been called.

Returns

  • DynamicSDK - The SDK singleton instance

Example

ClientProps

Configuration object for initializing the Dynamic SDK.

Properties

Example

ClientDebugProps

Debug configuration options.

Properties

  • webview (Bool) - Enable WebView debugging

Example

SDK Modules

After initialization, the SDK provides access to various modules:

Environment Setup

URL Scheme Configuration

Add a URL scheme to your Info.plist for authentication callbacks:

Dashboard Configuration

  1. Set your redirectUrl to match your URL scheme (e.g., yourapp://)
  2. Whitelist your deep link URL in Dynamic dashboard under Security → Whitelist Mobile Deeplink

Complete Setup Example

Last modified on April 3, 2026