I have app that has an in-app camera that the user can take picture using it.
I want that when the user take a picture, the picture will be saved to the device's camera roll.
I've tried to do it with:
UIImageWriteToSavedPhotosAlbum(imageToSave, nil, nil, nil)
but then I realised it's not saving it with the metadata of the image (GPS and capture time).
My question is: how can I save the image with its metadata to the camera roll (Swift 3)?
Thank you very much!