Search code examples
iosobjective-cswiftphotokitphasset

PHAsset: What is 'assetSource'?


I am enumerating a PHFetchResult. If I do a println on the PHAssets being returned, I get this:

<PHAsset: 0x178192140> 4CBE5A4F-90BD-438B-954E-6FF1B14538CD/L0/001 mediaType=1/0, assetSource=3, (2448x3264), creationDate=2014-10-15 14:20:12 +0000, location=1, hidden=0, favorite=1

Does anyone know what the assetSource=3 bit is? I would like to run a predicate on the assetSource if possible but can't find any information anywhere on what it is or how to access it. Is it private?


Solution

  • assetSource is a private variable, so its meaning is purposefully opaque.

    You could use a predicate to filter on assetSource from its description to investigate further, like in this question, but it'd be a purely academic exercise.