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

Will it support Compose UI? #212

Open
Vocaloid2048 opened this issue Apr 6, 2024 · 2 comments
Open

Will it support Compose UI? #212

Vocaloid2048 opened this issue Apr 6, 2024 · 2 comments

Comments

@Vocaloid2048
Copy link

Thanks for devs' hard work, it's a nice repo!
Although I've noticed that the last release was 9 months ago
Still, may I know will there are any plans to develop a version that supports / is adaptable for Compose UI?
Thx if possible!

  • Vocchi
@Dimezis
Copy link
Owner

Dimezis commented Apr 7, 2024

If you're having this issue with Compose, there's not much I can do.
Something breaks in Compose when it's being rendered to an external software canvas, and it's a deal breaker for this library.
I will report this to Compose team, since it's also reproducible with a much simpler code sample than the whole blur flow, but don't hold your breath for this to be fixed.

If they won't fix it, one thing I can do is migrate the library to hardware rendering snapshotting, but that will work only from API 31, and might even be not feasible at all.

Another option is to create a dedicated Composable that will work only for Compose, but I don't want to invest time in this, since other libraries like Haze are already doing it (although the blur also works only from API 31). I'm considering contributing to Haze to implement blur on older Android versions, but can't promise anything.

So to answer your question, the chances are slim 🙂

@Vocaloid2048
Copy link
Author

Thx for your reply and help, I know it's hard to develop it, and I'll try the suggestions u provided!

  • Vocchi

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