Only fetch PHAssets from the current user's iCloud Library

I'm working on a photo app and I want to allow the user to display, edit and delete photos. I can fetch all photos using PHAsset.fetchAssets(with: options). This works as intended.

However, I can't seem to find a way to prevent the user from seeing photos from a Shared Library. The PHAssetSourceType only contains typeCloudShared to only show items from a specific album; not library.

How can I filter by iCloud Shared Library?

Excellent question that I have as well.

There is no API available for filtering assets based on whether they are in the Personal or Shared Library.

The PHAssetSourceType of typeCloudShared is for determining if an asset is in an iCloud Shared Album.

Only fetch PHAssets from the current user's iCloud Library
 
 
Q