PhotoKit doesn't offer enough information about Camera Roll

Originator:an00na
Number:rdar://20733599 Date Originated:28-Apr-2015 03:41 PM
Status:Open Resolved:
Product:iOS SDK Product Version:8.3
Classification:Other Bug Reproducible:Always
 
Summary:
As far as I know, the way to get information about Camera Roll using PhotoKit is:
PHAssetCollection.fetchAssetCollectionsWithType(.SmartAlbum, subtype: .SmartAlbumUserLibrary, options: fetchOptions)

(If my assumption is wrong, please tell me the correct way. Thanks!)

There are two issues:
1. estimatedAssetCount is NSNotFound.
2. photoLibraryDidChange doesn’t contain change details about Camera Roll.

Steps to Reproduce:
1. Run the sample app.
2. Read console logs to see estimatedAssetCount is NSNotFound.
3. Add pictures to or delete pictures from Camera Roll using Photos.app.
4. Switch back to sample app.
5. Read console logs to see NOTHING about Camera Roll changes.

Sample code:
http://cl.ly/1p0g1c2d3c1t

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!