UIKit vs SwiftUI
UIKit Initialization
UseAppDelegate for UIKit apps:
SwiftUI Initialization
Use@UIApplicationDelegateAdaptor for SwiftUI apps:
Screen Tracking Differences
- UIKit: Enable automatic screen tracking with
.autoTrackUIKitScreenViews() - SwiftUI: Track screens manually:
In-app inline placements
- SwiftUI: Use
InlineMessage(elementId:) - UIKit: Use
InlineMessageUIView(elementId:)
visionOS Support
The SDK supports visionOS with a limited feature set.Supported Features
- Core DataPipelines (identify, events, screens)
- Apple Push Notifications (APNs)
- In-app messaging
- Location tracking
Unsupported Features
- Firebase Cloud Messaging (FCM)