↧
Answer by jayesh chaudhari for How to delete an Album on iOS?
Here's a function to delete a custom album programmatically with error handling:func deleteAlbum(albumName: String) { let options = PHFetchOptions() options.predicate = NSPredicate(format: "title =...
View ArticleAnswer by Maysam for How to delete an Album on iOS?
Douglas' answer fetches PHCollectionList then tries to perform an action on PHAssetCollection which fails. You should do this:options.predicate = NSPredicate(format: "title = %@", "AlbumName")let album...
View ArticleAnswer by Douglas Silva for How to delete an Album on iOS?
let options = PHFetchOptions()options.predicate = NSPredicate(format: "title = %@", RootPhotoAlbum.albumName)let album = PHCollectionList.fetchCollectionLists(with: .folder, subtype: .any, options:...
View ArticleHow to delete an Album on iOS?
I'm using PhotoKit and I've created an album PHAssetCollectionChangeRequest.creationRequestForAssetCollection(withTitle: RooPhotoAlbum.albumName)But I found some issue with first time saving file to...
View Article
More Pages to Explore .....