Before starting DriveKit Vehicle UI integration, make sure that you have initialized and components, especially if you have .
Integration
The Vehicle UI module is available on Cocoapods master repo.
target 'my-target' do
pod 'DriveKitVehicleUI'
end
Then, run pod install.
On this , you can find a demo app and the source code of Vehicle UI that you can use as an example.
Project configuration
In the , it is possible to change the picture of the vehicle. Because of this possible access to the user's Photo library or the camera, you must add the keys and in your Info.plist file.
Initialization
If you have , the Vehicle UI module must also be manually initialized. In the application's AppDelegate file, import DriveKitVehicleUI:
import DriveKitVehicleUI
Then, to initialize Vehicle UI module in your app, you must call the initialization method in didFinishLaunchingWithOptions method of your AppDelegate: