Any examples of creating an AssetCollectionList, then adding an AssetCollection to it?

JantJant USMember ✭✭

I've figured out how to create an AssetCollectionList. I haven't figured out how to add an AssetCollection to it.

What's tripping me up is AddChildCollections requires an array of PHCollection[], but I can't figure out what type could contain a PHAssetCollection for this to take place.

Any advice?

Best Answer

  • JantJant US ✭✭
    Accepted Answer

    Alright, I ended up figuring this out.

    The key ended up being making use of PHPhotoLibrary.SharedPhotoLibrary.PerformChangesAndWait and doing some casts with fetches.

Answers

  • JantJant USMember ✭✭
    Accepted Answer

    Alright, I ended up figuring this out.

    The key ended up being making use of PHPhotoLibrary.SharedPhotoLibrary.PerformChangesAndWait and doing some casts with fetches.

Sign In or Register to comment.