Skip to main content

UIKit vs SwiftUI

UIKit Initialization

Use AppDelegate for UIKit apps:

SwiftUI Initialization

Use @UIApplicationDelegateAdaptor for SwiftUI apps:

Screen Tracking Differences

  • UIKit: Enable automatic screen tracking with .autoTrackUIKitScreenViews()
  • SwiftUI: Track screens manually:

visionOS Support

The SDK supports visionOS with a limited feature set.

Supported Features

  • Core DataPipelines (identify, events, screens)
  • Apple Push Notifications (APNs)
  • Location tracking

Unsupported Features

  • Firebase Cloud Messaging (FCM)

visionOS Setup