Can you get photos in Recently Deleted using PhotoKit?

I looked through the API and found nothing. I would take a PHAssetCollection for "Recently Deleted" or a way to get an individual PHAsset s.

I do not recommend (or do not recommend), but there are some solutions outside of the API, and perhaps still AppStore-passable:

  • You can use the undocumented smart album ID for Recently Deleted, 1000000201 . See this question.

  • You can filter the text "assetSource=3" in PHAsset.description , see this SO answer .

+6
source share

Source: https://habr.com/ru/post/978198/


All Articles