mikaoj/BSImagePicker

[Feature Request] Indicating previously selected assets

koczka opened this issue · 4 comments

Hey,

I've been working on a project, and my use case would need to show the user the previously assets if they open the picker multiple times. I've been trying to implement this on an own fork, but no luck so far.

Any ideas?

Thanks!

Instead of creating a new picker every time keep a reference to a single picker that you present

Sorry, I wasn't specific enough.

I do keep the reference, and I use that to open the picker instance already.
I need a way to show the previously selected assets, without them affecting the selection. I'm thinking like kind of an overlay.

Did you find a solution?

Yeah, I did.

I created an exposed variable of type [PHAsset], which holds the previously selected assets, provided from outside the picker.
And I modified the datasource delegate to configure the cells when I open the picker.

I implemented this image picker in an Ionic Capacitor Plugin, that I use for my project.