Adding AVCameraCapture & AVFoundation to AppDelegate file

Hello!!

I think I found the code that will help with the camera capture function within my app but I don't know how to add it correctly within XCode.

https://developer.apple.com/documentation/avfoundation/capture_setup/choosing_a_capture_device

https://fek.io/blog/why-you-need-to-add-an-app-delegate-to-your-swift-ui-app/

If any of yall have worked with this code would ya help? Thank Ya :)

Adding AVCameraCapture & AVFoundation to AppDelegate file
 
 
Q