is possible save a photo takked from UIImagePickerController containing the metadata informations as location, camera like in original OS camera app?

Generated on 10/17/2024

1 search

Yes, it is possible to save a photo taken from UIImagePickerController with metadata information such as location and camera details, similar to the original iOS camera app. The session "Build a great Lock Screen camera capture experience" at WWDC 2024 discusses how you can use the Locked Camera Capture framework to create a capture extension that can save photos and videos to a user's photo library, even when the device is locked.

The framework allows you to use PhotoKit to add captured photos and videos to the photo library, which can include metadata. This is done by writing the content to the photo library during the capture session. When the device is unlocked, your extension can access all photos and videos that have been granted access, not just those captured during the current session.

For more detailed information, you can refer to the session chapter on "Capturing from the Lock Screen" starting at 11:11.