Unable to Fetch Videos from Recently Deleted Album Using Photos Framework in iOS 18.3.1

Hello everyone,

I’m working on an iOS app that fetches videos from the "Recently Deleted" album using the Photos framework in Swift. However, I’m unable to fetch any videos, even though the "Recently Deleted" album contains 233 items (including videos), as seen in the Photos app.

Environment: iOS Version: 18.3.1 Xcode Version: 16.2 Swift Version: Swift 5 Device: iPhone (simulator and physical device both tested) Photo Library Permission: "All Photos" access granted Recently Deleted Lock: Face ID/Passcode is disabled for "Recently Deleted"

Answered by Engineer in 830005022

There is no API to get the assets within the Recently Deleted album, those are only accessible within the system Photos app. Even if you have disabled the Face ID / Passcode for the Recently Deleted album, these assets are not available via API.

There is no API to get the assets within the Recently Deleted album, those are only accessible within the system Photos app. Even if you have disabled the Face ID / Passcode for the Recently Deleted album, these assets are not available via API.

If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here.

If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

Albert Pascual
  Worldwide Developer Relations.

Unable to Fetch Videos from Recently Deleted Album Using Photos Framework in iOS 18.3.1
 
 
Q