Skip to main content

Native iOS

Surfside has two Swift packages for native iOS apps. Each repository's README is the source of truth for installation, quick start, API reference and troubleshooting; this page only tells you what exists.

iOS Ads SDK (SurfsideAdsKit)​

Serves sponsored products and banners inside a native app, in Swift, with no embedded web widget: the native counterpart of the web Surfside Ads workflows. Fetches products for a placement, renders banners as UIKit or SwiftUI views, and fires impression pixels only when an ad is actually on screen. iOS 14 or later, Swift Package Manager.

From 1.2.0, ad requests are sent as in-app inventory carrying your app's bundle id, and developmentTesting: true lets you test in development builds without anything being recorded or billed. See Debug and Test Mode.

iOS Tracker (SurfsideTracker)​

Sends first-party commerce events (product views, cart activity, transactions) from a native app, the counterpart of the browser and Node SDKs. A fork of the Snowplow iOS tracker, so every Snowplow event type is available, with Surfside's commerce and account contexts on top. iOS 11 or later, Swift Package Manager.

Using both​

Installed together, the ads SDK reads the tracker's device identity automatically, so ad requests and tracked events belong to the same shopper. Use tracker 2.1.0 or later, create the tracker before SurfsideAds, and hold one SurfsideAds instance. Details in the ads SDK README's Identity section.

Getting help​

Reach out to your Surfside Customer Success manager, or see the Contact Support section for how to get in touch.