For SwiftUI use:
onContinueUserActivity
and for AppDelegate use
application(application: continue: restorationHandler:)
to grab the NSUserActivityTypeLockedCameraCapture userInfo.
Post
Replies
Boosts
Views
Activity
Figured it out: my Capture Extension View (UIViewControllerRepresentable) file had a target membership linked to the main app. Added by accident, removing it was the fix 😅
Hello,
You use AVCaptureEventInteraction to detect when the camera button is pressed: https://developer.apple.com/documentation/AVKit/AVCaptureEventInteraction
And this guide shows how to work with camera controls:
https://developer.apple.com/documentation/avfoundation/capture_setup/enhancing_your_app_experience_with_the_camera_control
It looks like the app is being kicked out if it doesn't handle AVCaptureEventInteraction.
In my app you could previously remap each volume button for specific controls. Since AVCaptureInteraction doesn't distinguish between the buttons, this is definitely a downgrade. Bit of a shame!
Thank you, I believe that's what I was looking for!
Thank you Greg! Quick test confirmed this solved it 🥳
Just want to bump that I am also having trouble with this, all calls to requestGeometryUpdate() are denied.
iOS 16 beta 4, iPhone 12 Pro