YPImagePicker icon indicating copy to clipboard operation
YPImagePicker copied to clipboard

Airdropped photos are not showingup into the library

Open twinkalH opened this issue 5 years ago • 7 comments

Describe the bug Airdropped photos from MacBook are not showing up into the library and some of these are at the end.

Expected behavior Airdropped photos should also work fine as the normal camera roll photos and should be first not at the end.

Environment:

  • Device: All
  • OS: iOS13.3 up
  • Xcode Version 11.3
  • Swift Version 4.0

Installation Type

  • Cocoapods

twinkalH avatar Jun 29 '20 11:06 twinkalH

@twinkalH the items in the gallery are sorted by "creationDate" (YPLibraryVC#293). So, the AIRdrop-ed items could have different (much older) creationDate. So, those items are somewhere in the Gallery, but probably you have to scroll a lot more.

I'm experimenting with different sortDescriptor, but the result is not the same like in Recent (in Photos app). I'll keep looking for a solution.

heitara avatar Aug 05 '20 11:08 heitara

@heitara Thank you so much for your help on those issues, this is Very appreciated 🥇

s4cha avatar Sep 24 '20 14:09 s4cha

Hi guys. Just asking if we have any changes regarding this issue?

maksymIv3 avatar Dec 15 '20 09:12 maksymIv3

All media is sorted by creation date. So the airdropped files are in the collection but at different position. There is no easy way to order those the same way like in Photos app. Any ideas are appreciated how that can be achieved.

heitara avatar Dec 15 '20 11:12 heitara

have you tried options.sortDescriptors = [NSSortDescriptor(key: "modificationDate", ascending: false)]

SzymonMatysik avatar Jul 15 '21 15:07 SzymonMatysik

@twinkalH the items in the gallery are sorted by "creationDate" (YPLibraryVC#293). So, the AIRdrop-ed items could have different (much older) creationDate. So, those items are somewhere in the Gallery, but probably you have to scroll a lot more.

I'm experimenting with different sortDescriptor, but the result is not the same like in Recent (in Photos app). I'll keep looking for a solution.

@heitara Do you came up with any solution yet?

KoodosDev avatar Nov 06 '21 20:11 KoodosDev

I tried a bunch of things without much luck. Can you give it a try with the modificationDate?

heitara avatar Nov 06 '21 23:11 heitara