Yummypets / YPImagePicker

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

Gallery selection is stuck when first photo was not granted permission #594

Open arthurfaredge opened 4 years ago

arthurfaredge commented 4 years ago

Describe the bug The gallery view automatically selects the first photo and shows preview. If the first photo was not given permission by the user, it shows up a blank on the YPPicker gallery and it tries to show the preview of this. This is where the picker view gets stuck. User cannot select on a different picker. It also happens when the users selects a blank space (OS did not give permission for access) item.

To Reproduce Steps to reproduce the behavior:

  1. Go to YP image picker
  2. OS will prompt for "Select More Photos" and "Keep Current Selection"
  3. Unselect the first photo (do not give access) and click done
  4. See error (screenshot attached)

Expected behavior YP Picker should be able to handle photos that was not given permission (better the gallery only shows images that was given perimission

Screenshots

Screen Shot 2020-10-28 at 11 53 00 AM Screen Shot 2020-10-28 at 11 41 12 AM

Environment (please complete the following information):

Installation Type

Additional context Add any other context about the problem here.

pramittewari commented 3 years ago

+1

Seepak commented 3 years ago

On peut avoir un fix svp ?