To add the Driver Achievement UI module to your app:
Swift Package Manager: Add DriveKitDriverAchievementUI from repository: https://github.com/DriveQuantPublic/drivekit-ui-ios.git as dependency.
Cocoapods: add the following pod to your Podfile:
target 'my-target'do pod 'DriveKitDriverAchievementUI'end
Then, run pod install.
On this Github repository, you also have a demo app and source code of Driver Achievement UI that you can use as an example.
Initialize
If you have disabled the SDK auto-initialization, the Driver Achievement UI module must also be manually initialized. In the application's AppDelegate file, import DriveKitDriverAchievementUI.
importDriveKitDriverAchievementUI
Then, to initialize the Driver Achievement UI SDK in your app, you must call the initialization method in didFinishLaunchingWithOptions method of your AppDelegate.