Type Method

deleteAssets(_:)

Requests that the specified assets be deleted.

Declaration

class func deleteAssets(_ assets: NSFastEnumeration)

Parameters

assets

An array of PHAsset objects to be deleted.

Discussion

Call this method within a photo library change block to delete assets. For details on change blocks, see PHPhotoLibrary.