At the top of your view controller import the PassioNutritionAISDK and AVFoundation
importAVFoundationimportPassioNutritionAISDK
Add the following properties to your view controller.
let passioSDK = PassioNutritionAI.sharedvar videoLayer: AVCaptureVideoPreviewLayer?var isSDKConfigured =falsevar isProcessingResult =false
Create a function to configure the SDK and call it from viewDidLoad. Use the SDK key you received from Passio. We'll add the function for checkCameraAuthorizationAndStartDetection in the next step, so ignore the error for now.