Get started
Last updated
Was this helpful?
Last updated
Was this helpful?
Before starting DriveKit Trip Analysis UI integration, make sure that you have initialized TripAnalysis and modules, especially if you have .
The Trip Analysis UI module is available on Swift Package Manager and Cocoapods master repo.
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.git
Include DriveKitTripAnalysisUI in your app.
To integrate DriveKitUI to a Swift package via a Package.swift
file, you can add DriveKitUI to the dependencies array of your package. For more details, see the .
Then in your target, add DriveKitTripAnalysisUI to the dependencies array of that target:
To add TripAnalysisUI module, add the following line to your Podfile:
Then, run pod install
.
Then, to initialize Trip Analysis UI SDK in your app, you must call the initialization method in didFinishLaunchingWithOptions
method of your AppDelegate:
If you have , the Trip Analysis UI module must also be manually initialized. In the application's AppDelegate file, import DriveKitTripAnalysisUI: