Update: Since the termination is due to "Camera not actively used; AVCaptureEventInteraction not installed", I have tried this way to see if the issue can be solved:
Using onCameraCaptureEvent API from iOS 18 in my SwiftUI view.
And after adopting this, it seems that I haven't encounter this issue any more. But I do have a few concerns:
Previously I use AVCaptureEventInteraction, which is available since iOS 17.2 and add it to the keyWindow?.rootViewController?.view. Does onCameraCaptureEvent API using the same approach behind the scene?
Still, the app is running as the main target (Not the CaptureExtension), why does the system decide to monitor whether the camera is active and AVCaptureEventInteraction is installed or not?
Post
Replies
Boosts
Views
Activity
Having the same issue. Here is the demo to reproduce this issue:
https://github.com/JuniperPhoton/HDRMemoryIssueDemo
This issue still exists on iOS 18 Developer Beta.
It occurs to me too. And I found the way to reproduct it:
Open a sheet by SwiftUI: .sheet
Switch to other app
Back to your app, close the sheet
And then some buttons aren't responsive.