Add a function to setup the camera preview layer:
Add the method startFoodDetection()
This code will throw a missing delegate conformance error that we will resolve in the next step, ignore it for now.
Add a function to request authorization to use the camera and start recognition. Call the function from viewWillAppear
:
Create a function to stop Food Detection and call it from viewWillDisappear
:
If at any point you need help from the Passio team, please reach out to us at support@passiolife.com