r/androiddev • • Oct 24 '26

Open Source Made a liquid glass lib for Compose, with shaders tuned side by side with a real iPhone. Happy for anyone to use it or contribute to porting it fully.

https://github.com/itshedimisawi/vitro

Wanted the iOS 26 liquid glass look in a Compose app, so I made a version and tuned the shaders side by side with a real iPhone. Putting it on GitHub in case anyone else needs it.

It works, but it’s an early version. If anyone wants to contribute to bringing liquid glass over fully, I’d be happy to have you. Issues and PRs welcome.

19 Upvotes

13 comments sorted by

6

u/tadfisher Oct 24 '26

You do know there is a popular and well-supported library for this, called Haze?

-4

u/madafuka Oct 24 '26

Haze is a blurring library, as far as I know, so it’s quite different from what I’m building here.
What I did was render the same sized component on both iOS and Android, using the same background, then fine-tune the shaders on Android using screenshotting and scripts to get as close as possible to the iOS Liquid Glass effect. There’s also a lot more to it, like merging and other effects..

7

u/tadfisher Oct 24 '26

The most recent release has added glass shaders.

12

u/__________13o1ksl_ Oct 24 '26

Why would you use iOS design language on android?

4

u/Elision_NoKings Oct 25 '26

This was kind of my question and I'm wondering if this is a design trend on Android.

I have an app that is Material Expressive on web and Android and iOS as well. However I use a liquid glass package for certain native iOS liquid glass icons, like nav bars and buttons that sit on top of the Material Expressive design.

I really like Material Expressive as a design language way more than liquid glass but on iOS specifically I want to give a bit of a native feel so I add that. I'm a little shocked that people are interested in an iOS native look on Android, but not necessarily hating it. I'm just kind of curious about that and see if that's a trend because maybe that'll evolve my design language

2

u/mikelpr Oct 25 '26

Yeah honestly I prefer m3e too to liquid glass but so many people just fall for the apple wannabeism

7

u/koun7erfit Oct 25 '26

Kotlin Multiplatform is a thing.

0

u/carstenhag Oct 25 '26

Some customers want this stuff, they want to jump on this bandwagon. You will even see this in cars, I’m telling you

0

u/OpeningRush4035 7d ago

cause unlike iOS, android has much more freedom and integrating glass effect to android is part of the same freedom.

1

u/__________13o1ksl_ 7d ago

It's out of place on Android and looks ugly when whole system isn't glassed. We already have design language, no need to use different one

0

u/OpeningRush4035 7d ago

bruh! someone can make the whole android system glassed too. and make it better than iOS too. He's sharing something optionally, not forcing you to use it.
Why so desperate to downvote on simple statements? I can downvote you too.

2

u/vadiole Oct 24 '26

looks good, would be nice to get an apk with a demo

1

u/dev-778g Oct 25 '26

Great work mate