I am using PhotoKit to edit photos and I need to preserve the metadata from the original photo. To do so I save the metadata then provide it to the options paramete
options
It seems that filling the adjustementData property of the PHContentEditingOutput object is mandatory in order to edit a photo.
adjustementData
PHContentEditingOutput