PHAsset of older photos is missing GPS info in Swift

I've been working in Swift on iOS to access images via UIImagePickerController, pulling the PHAsset from the picker delegate's "info" dictionary, and then pulling GPS information from the PHAsset.

For newer photos, the asset.location is populated with GPS information.

Also, with newer photos, CIImage's property dictionary has {GPS} information.

So all is good with newer photos.

But when I go back to images taken in 2017, asset.location is nil and there is no "{GPS} information in the CIImage.

However, if I export the photo from Photos app on my Mac and then view it in Preview, there *is* GPS information.

So am I missing some settings to find the GPS information in older photos using PHAsset on iOS?

Thanks,
Follow up:

I think (???) I figured it out!!

When selecting photos in the photo picker, if the photo is from a shared album, the GPS information isn't there. But if I find the original photo, it *does* have the GPS information.

Will continue testing.

Just to highlight my comment above, the pictures in question are not in a Shared album.

PHAsset of older photos is missing GPS info in Swift
 
 
Q