iOS (Swift) event tracking SDK

Connect iOS (Swift) event tracking SDK and send data from iOS (Swift) event tracking SDK with Rudderstack.

Integration Logo
RudderStack Logo

Overview

The RudderStack iOS (Swift) SDK enables you to track and send event data from your iOS, macOS, tvOS, and watchOS applications to any destination supported by RudderStack. Popular destinations include data warehouses like BigQuery, Redshift, and Snowflake; product analytics tools like Amplitude and Mixpanel; customer engagement platforms likeIterable, Braze, and Customer.io; ad platforms like Google Ads, Meta, and TikTok Ads; and mobile attribution tools like AppsFlyer and Adjust.Unlike traditional Android analytics SDKs that lock your event data into a single platform, RudderStack's Swift SDK acts as a single source of truth for mobile event tracking. Instrument once, then route the same events to every downstream destination in your stack.With the RudderStack iOS (Swift) SDK, you can configure your RudderStack client based on different parameters, such as the number of events in a batch request, the minimum waiting time to flush events to the server, and whether the SDK will automatically capture application lifecycle events. The SDK also supports session tracking, device ID collection, and Gzip compression for network requests.

Swift is a modern, type-safe programming language developed by Apple and the standard for building applications across Apple platforms. The RudderStack iOS (Swift) SDK is built natively for Swift, leveraging async-await and structured concurrency for non-blocking operations. It includes a dynamic plugin architecture, multi-instance support, and its platform coverage includes macOS alongside iOS, tvOS, and watchOS.

It uses direct initialization for a simple setup, and it provides type-safe direct property access to anonymousId, userId, traits, and sessionId. It also supports creating multiple isolated analytics instances with independent state, storage, and configuration - particularly useful for multi-tenant applications or tracking different data streams.


FAQs

What does the RudderStack iOS (Swift) SDK do?

Which Apple platforms does the RudderStack iOS (Swift) SDK support?

How do I debug the RudderStack iOS (Swift) SDK if I run into any issues?

How do I start using the RudderStack iOS (Swift) SDK to track events?

Can I use the iOS (Swift) SDK to send event data to a data warehouse?

Is the SDK built natively for Swift?

Does the SDK support session tracking?

Should I use the iOS (Swift) SDK or the legacy iOS (Obj-C) SDK?

Can I migrate from the legacy iOS (Obj-C) SDK to the iOS (Swift) SDK?

Related integrations

Check out other integrations that can be matched with RudderStack!

View all integrations
CTA Section BackgroundCTA Section Background

Start delivering business value faster

Implement RudderStack and start driving measurable business results in less than 90 days.

CTA Section BackgroundCTA Section Background