Get started
Prerequisite
Before starting DriveKit Challenge UI integration, make sure that you have initialized Challenge and Common UI modules.
Integration
The Challenge UI module is available on Cocoapods master repo.
To access the framework in the repository, add the following lines to your Podfile:
Then, run pod install.
On this Github repository, you can find also a demo application that contains the DriveKit challenge component. This code is open source and you can use it as an example.
Initialization
If you have disabled the SDK auto-initialization, the Challenge UI module must also be manually initialized. In the application's AppDelegate file, import DriveKitChallengeUI
:
Then, to initialize Challenge UI module in your app, you must call the initialization method in didFinishLaunchingWithOptions
method of your AppDelegate:
Display Challenge List
To display the challenges list, just call the following method:
Last updated