Is there an easy way to take a photo with exif informations like the standard iOS Camera App and save it to photo album?
try? PHPhotoLibrary.shared().performChangesAndWait {
let creationRequest = PHAssetChangeRequest.creationRequestForAsset(from: image)
// Set metadata location
if let location = self.locationManager?.latestLocation {
creationRequest.location = location
}
}
is not saving location informations to exif.
I tried the following solution
add GPS metadata dictionary to image taken with AVFoundation in swift
I could save basic exif informations using AVCapture but inserting location informations did not work.
I can not believe that there is no easier way.