I make Swept, a free iPhone photo cleaner with ads; this is how its Trash works. Excerpts are from the real code, trimmed, with a few comments shortened.
A swipe-to-clean app has a built-in mismatch. A swipe takes a fraction of a second and people do hundreds in one sitting. Deleting from the photo library is heavier, and iOS guards it. Apple's documentation for performChanges(_:completionHandler:) says:
For each call to this method, iOS shows an alert asking the user for permission to edit the contents of the photo library. If your app needs to submit several changes at once, combine them into a single change block.
So "delete on swipe" was never an option: that's a system alert per card. Swept does the opposite. A left swipe writes one row to a local SwiftData store and nothing else.…