I'm using PHAsset.fetchAssets
to retrieve some assets from a PhotoKit collection. I need to be able to tell when an asset was added to a collection. I realize assets have a creationDate
and modificationDate
, but those refer to when the item was created. For example, if I copy a photo taken on device A to device B, the creationDate
on device B will reflect when the photo was taken. I need to know when it was copied to the device.
I remember there being a way to retrieve "hidden" fields from PHAsset by using value(forKeyPath: <#T##String#>)
or something along those lines, but I can't find the source anymore.