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

Q&A: Do this library compatible with compose multiplatform? #30

Open
darwineee opened this issue Jun 1, 2023 · 4 comments
Open

Q&A: Do this library compatible with compose multiplatform? #30

darwineee opened this issue Jun 1, 2023 · 4 comments

Comments

@darwineee
Copy link

As for the title, I am really interested in this library. I just want to make sure this lib is working with compose multiplatform (from JetBrains) or only jetpack compose? Thank you.

@oleksandrbalan
Copy link
Owner

Unfortunately I have only a little knowledge of the compose multiplatform, so this library is only jetpack compose as for now.

The main component is a FullscreenPopup, which is highly tied to the android (android.view.*, android.content.*, androidx.lifecycle.*). So this component must be "multiplatformed" to be able to migrate this lib to multiplatform.

I will try to investigate how it would be possible 👀

Are you mainly interested in Desktop, iOS or Web? Or everything? 😄

@darwineee
Copy link
Author

Just Android and iOS. Hope this library can become "multiplatform" in the future. Thank you for your work! :)

@oleksandrbalan
Copy link
Owner

Thanks!

I tried to throw ModalSheet to the Compose Multiplatform template project and it kinda works if used with multiplatform Popup instead of custom FullscreenPopup. But there is some work need to be done with window insets and HW back button handling 🤔

But I am really impresed that it works at least somehow 😅

Screen.Recording.2023-06-06.at.19.14.41.mov

@oleksandrbalan
Copy link
Owner

For multi-platform solution you can use https://composablescore.com/modal-bottom-sheet/.

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

No branches or pull requests

2 participants