Does anybody know if Apple’s Photos SDK allows us to fetch, or even modify tags on assets stored in the user’s Photos library?
From the official docs I understand that the SDK allows us to change the « favorite » status, show/hide assets, or even find an asset’s location, but I couldn’t find a way to extract a photo’s tags (keywords) stored by the macOS Photos app.
Is it a feature lacking from the current Photos SDK, or is there any way I can access these metadata?
Thanks
Here is a sample how you can get Metadata using CIImage.properties from
PHAsset
.For iCloud stored images add the following line:
I haven't found Image metadata in
PHAsset
as well.For writing
CIImage
metadata you can tryCIImage.settingProperties(_:)
method.