Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
- let url = info[UIImagePickerControllerReferenceURL] as? URL
- if url != nil {
- let fetchResult = PHAsset.fetchAssets(withALAssetURLs: [url!], options: nil)
- let asset = fetchResult.firstObject
- print(asset?.location?.coordinate.latitude)
- print(asset?.creationDate)
- }
- }
Add Comment
Please, Sign In to add comment