A PHCollectionList
is a folder that could contain any number of albums and/or folders. I am currently fetching the collections within the list via PHCollection.fetchCollectionsInCollectionList(list, options: nil)
.
This could return objects of type PHAssetCollection
or PHCollectionList
. I am only interested in knowing of the PHAssetCollection
s in that list. The docs state you can apply a filter predicate using the fetch options in order to return a subset of the data, but I don't see how I would use that in order to only get albums. How do you use PHFetchOptions
in order to return only PHAssetCollection
s in a given PHCollectionList
?