Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PHPicker if file type is image on iOS #50

Merged

Conversation

iruizmar
Copy link
Contributor

@iruizmar iruizmar commented Jan 4, 2024

Closes #35

I just copied the logic you previously had to use the PHPicker, but it's running only if the desired file type is an image.

Let me know if something else is required. Maybe a different screen in the sample to select an image or a pdf and thus check that the document picker is correctly run would be good.

image

@MohamedRejeb
Copy link
Owner

Looks good! Thanks for your contribution.

@MohamedRejeb
Copy link
Owner

Yes, I think it would be a good idea if you can add a new screen with a pdf picker to have both pickers in the sample.

Copy link
Owner

@MohamedRejeb MohamedRejeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@iruizmar
Copy link
Contributor Author

iruizmar commented Jan 8, 2024

Hey @MohamedRejeb 👋🏻
Thanks for that.
I added the screen to check the behaviour of selecting images or files and added a fancy switch to decide if the launcher should allow single or multiple selections.
This led me to find that the file picker is not working properly on Android. Do you want me to open an issue for that?

By the way, I think I'm not able to merge the branch so feel free to do it when required!

@MohamedRejeb
Copy link
Owner

I'll merge it, I was just waiting for the build result.
Yes, please open an issue for that, I will check it out.

@MohamedRejeb MohamedRejeb merged commit 2d92b49 into MohamedRejeb:main Jan 8, 2024
4 checks passed
@iruizmar iruizmar deleted the use_phpicker_for_images_on_ios branch January 8, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File Picker Opening Recents Screen in iOS
2 participants