How to set the location for the captured photo by using UIImagePickerController?
I have an app that has the option to take a photo or grab one from the phones gallery.
If I selsct one from the gallery I can see the GPS data in the info[UIImagePickerControllerReferenceURL], but when I save it to the apps documents folder it loses the GPS data.
If I take a photo from within the app the info[UIImagePickerControllerReferenceURL] is nil?
2
Answers
I did lots of RND and searched here and there and tried many solutions but no luck, after googling for hours
Finally figured out with the help of https://developer.apple.com/documentation/photokit/phassetchangerequest?language=objc
So, I assuming you want to fetch Metadata Information –
Try the following snippet for this-
Get UIImage MetaData