fetchTopLevelUserCollections(with:)
Retrieves collections from the root of the photo library’s hierarchy of user-created albums and folders.
Declaration
class func fetchTopLevelUserCollections(with options: PHFetchOptions?) -> PHFetchResult<PHCollection>Parameters
- options:
Options that specify a filter predicate and sort order for the fetched collections, or
nilto use default options. For details, see Phfetchoptions.
Return Value
A fetch result that contains the requested PHCollection objects, or an empty fetch result if no objects match the request.