MohamedRejeb / Calf

Calf is a library that allows you to easily create adaptive UIs and access platform specific APIs with Compose Multiplatform (Adaptive UI, File Picker, WebView, Permissions...).
https://mohamedrejeb.github.io/Calf/
Apache License 2.0
915 stars 41 forks source link

File Picker Opening Recents Screen in iOS #35

Closed Vaibhav2002 closed 9 months ago

Vaibhav2002 commented 11 months ago

File Picker is opening the Recents Screen in iOS, unlike the gallery screen as shown in the Repository Readme.

Source Code

val imageLauncher = rememberFilePickerLauncher(
    type = FilePickerFileType.Image,
    selectionMode = FilePickerSelectionMode.Single,
) {
   //handling response
}

Screen which is being Opened

Screenshot 2023-10-26 at 6 33 30 PM

Screen which should be Opened

image

Vaibhav2002 commented 11 months ago

@MohamedRejeb I've added this feature to my project by modifying your source code, Can I send a PR?

MohamedRejeb commented 10 months ago

Hi, Yes feel free to send a PR, I was using the image picker, but after adding support to pdf and other formats, I decided to use the other picker for all formats. I think now I'll show the image picker for images and the current picker for the other types.

import-tushar commented 10 months ago

@MohamedRejeb when can we expect image picker to merge, or any change we can do in our source code to enable it?