Dear Apple Support,
I hope this message finds you well. I am writing to report an issue regarding a custom camera functionality developed in Swift.
I have implemented a camera feature using Swift, and the relevant source code contains the following snippet:
if currentDevice.isSmoothAutoFocusSupported {
currentDevice.isSmoothAutoFocusEnabled = true
}
However, when attempting to capture images on an iPad (9th generation) by focusing on a person's face, the camera preview freezes.
Upon further investigation, I noticed that the AVCaptureSessionRuntimeErrorNotification is triggered, and the associated error code is mediaServicesWereReset.
I would greatly appreciate your assistance in resolving this issue. Please let me know if any additional information or code snippets are required to help diagnose and rectify the problem.
Thank you for your attention to this matter. I look forward to your prompt response and a solution to this camera functionality issue.
Best regards,
Lin