AppPanel
Durable LinksiOS Setup

SDK Setup

Initialize the AppPanel SDK and configure Associated Domains.

Initialize the SDK

You must call configure once at app launch, before using any other SDK methods.

YourApp.swift
import SwiftUI
import AppPanel

class AppPanelDelegate: NSObject, UIApplicationDelegate {
  func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    AppPanel.configure(apiKey: "YOUR_API_KEY")
    return true
  }
}

@main
struct YourApp: App {
  @UIApplicationDelegateAdaptor(AppPanelDelegate.self) var delegate

  var body: some Scene {
    WindowGroup {
      ContentView()
    }
  }
}
AppDelegate.swift
import AppPanel

func application(
  _ application: UIApplication,
  didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
  AppPanel.configure(apiKey: "YOUR_API_KEY")
  return true
}

Configure custom domains

If you're using a custom domain, set it after initialization:

AppPanel.shared.durableLinks.customDomains = ["links.yourapp.com"]

Configure Associated Domains

Associated Domains must be configured for Universal Links to work. Without this, tapping a Durable Link will open the browser instead of your app.

In your Xcode project, go to Signing & Capabilities and add the Associated Domains capability. Then add your project's subdomain:

applinks:yoursubdomain.wayp.link

If using a custom domain, also add:

applinks:links.yourapp.com

On this page