PHAssetChangeRequest.deleteAssets not working

Viewed 12

I have an iphone 11pro ios 15.0 device. The video is playable but When I call 'deleteAssets' the 'completionHandler' never runs.

PHPhotoLibrary.shared().performChanges {
    PHAssetChangeRequest.deleteAssets(deleteAccess as NSFastEnumeration)
} completionHandler: { [weak self] success, error in 
    //Never run
}

Does anyone know why this happens? Does anyone have a solution for this?

1 Answers

I do not know. But after I reset my iPhone, everything is back to normal. Maybe it's a system error.

Related