iOS 14 Photo Privacy

Hi,

my Photo app has serious problems with the new privacy photo features in iOS 14 and I try to get it to work with .limited access. Because the informations are rare I hope someone can point me in to the right direction.

First of all I use an ImagePicker, my own, because I need to filter PHAsssets on different criteria. Then I pass the assets to my ImagePicker and it only list these. Second it shows an action button to start camera to take a new photo. I think the new PHPickerViewController still don't have these functionalities?!

So its all about the .limited access status - with .authorized access everything is working fine!
I successfully receive a new taken photo from the picker. But it fails saving it to my own created album. First I create the album via
Code Block
let createAlbumRequest = PHAssetCollectionChangeRequest.creationRequestForAssetCollection(withTitle: AlbumName)

which is successful. Next I prepare to add the picture by getting the PHAssetCollection object of this album via

Code Block
let fetchOptions = PHFetchOptions()
fetchOptions.predicate = NSPredicate(format: "title = %@", AlbumName)
let collection = PHAssetCollection.fetchAssetCollections(with: .album, subtype: .any, options: fetchOptions)

Next I would try to save the image to this collection via
Code Block
PHPhotoLibrary.shared().performChanges({
let assetChangeRequest = PHAssetChangeRequest.creationRequestForAsset(from: uiImage)
let assetPlaceHolder = assetChangeRequest.placeholderForCreatedAsset
let albumChangeRequest = PHAssetCollectionChangeRequest(for: collection)
...

which is not working because the collection object of before is nil. So I can't receive the collection I just created.

I don't know what's the point being allowed to open the camera, create an album, but unable to store things inside?! So I believe I didn't get the new concept :)

Btw I read about a popup which should appear if an app tries to add to collections, which should have pop up in my situation I think, but I never saw such a popup. I know these when deleting from a collection.

Any help appreciated!
Thank you
iOS 14 Photo Privacy
 
 
Q