Yummypets / YPImagePicker

📸 Instagram-like image picker & filters for iOS
MIT License
4.31k stars 974 forks source link

Airdropped photos are not showingup into the library #516

Open twinkalH opened 4 years ago

twinkalH commented 4 years ago

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:

Installation Type

heitara commented 4 years ago

@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.

s4cha commented 4 years ago

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

maksymIv3 commented 3 years ago

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

heitara commented 3 years ago

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.

SzymonMatysik commented 3 years ago

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

KoodosDev commented 2 years ago

@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?

heitara commented 2 years ago

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