How do I fetch all PHAssets from Photos Library that contain an edit (filter on hasAdjustments)?

I am trying to retrieve all PHAssets from the Photos Library that have been edited. PHAsset contains the "hasAdjustments" boolean variable but I cannot use that in an NSPredicate to filter for edited photos.

What is the proper mechanism to filter out non-edited photos?

Here is the code I have written that crashes:

let formatString = "mediaType = %d && hasAdjustments == YES"
               
let allPhotosOptions = PHFetchOptions()
            
allPhotosOptions.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: true)]
            
allPhotosOptions.predicate = NSPredicate(format: formatString, PHAssetMediaType.image.rawValue)

allPhotosOptions.includeAssetSourceTypes = [.typeUserLibrary, .typeiTunesSynced, .typeCloudShared]

return PHAsset.fetchAssets(with: allPhotosOptions)

Thanks, Rick

How do I fetch all PHAssets from Photos Library that contain an edit (filter on hasAdjustments)?
 
 
Q