-1

If sorting album with date of creation, I could give the key creationDate, so what's the key for date added? additionDate? No, it's incorrect.

NSSortDescriptor(key: "creationDate", ascending: false)
Leo
  • 1,495
  • 12
  • 24
  • 1
    All of the information can be easily found in apple's documentation here: https://developer.apple.com/documentation/photokit/phfetchoptions?language=objc#1965657 . See the chart with all the supported keys. – Jon Rose Apr 28 '19 at 06:08
  • @JonRose Thank you, but there is no this key, so is there any other way? – Leo Apr 28 '19 at 06:46

1 Answers1

0

You can find all the publicly available methods/keys here PHFetchOptions

If what you’re looking for is not listed then it means that there is either no way to do it OR it is considered a private API in most cases.

סטנלי גרונן
  • 2,740
  • 21
  • 43
  • 62