Get started
Prerequisite
Before starting DriveKit Trip Analysis UI integration, make sure that you have initialized TripAnalysis and CommonUI modules, especially if you have disabled the SDK auto-initialization.
Integration
The Trip Analysis UI module is available on Swift Package Manager and Cocoapods master repo.
Swift Package Manager
Via Xcode:
In Xcode, add the DriveKitUI SDK by navigating to File > Add Package Dependencies...
In the prompt that appears, enter the DriveKitUI repository:
https://github.com/DriveQuantPublic/drivekit-ui-ios.gitInclude DriveKitTripAnalysisUI in your app.
Via Package.swift:
To integrate DriveKitUI to a Swift package via a
Package.swiftfile, you can add DriveKitUI to the dependencies array of your package. For more details, see the Swift Package Manager documentation.
dependencies: [
.package(name: "DriveKitUI",
url: "https://github.com/DriveQuantPublic/drivekit-ui-ios.git",
from: "2.0.0"),
// ...
],Then in your target, add DriveKitTripAnalysisUI to the dependencies array of that target:
Cocoapods (deprecation scheduled for the end of 2025)
To add TripAnalysisUI module, add the following line to your Podfile:
Then, run pod install.
Initialization
If you have disabled the SDK auto-initialization, the Trip Analysis UI module must also be manually initialized. In the application's AppDelegate file, import DriveKitTripAnalysisUI:
Then, to initialize Trip Analysis UI SDK in your app, you must call the initialization method in didFinishLaunchingWithOptions method of your AppDelegate:
Last updated
Was this helpful?

