Kyant0 0aa70ad5fa Update shader to match Apple's effect
1. Coerce cornerRadius * 1.5 <= sizeMinDimension

But why Apple doesn't also coerce cornerRadius <= sizeMinDimension?

2. Update `gradSdRoundedRectangle` to use analytical solution
2025-06-20 12:13:02 +08:00
2025-06-20 12:13:02 +08:00
2025-06-18 18:15:41 +08:00
2025-06-18 18:15:41 +08:00
2025-06-18 18:15:41 +08:00
2025-06-18 18:15:41 +08:00
2025-06-18 18:15:41 +08:00
2025-06-19 23:59:56 +08:00
2025-06-18 18:15:41 +08:00

Android Liquid Glass

An Android app that simulates Apple's Liquid Glass effect, Android 13 and above is required.

About shaders

You mustn't use the shaders in the project for commercial purposes, they are only for educational purposes.

Comparisons

Android device: Google Pixel 4 XL (the smallest width is adjusted to 440 dp to match the density of the iOS device)

iOS device: iPhone 16 Pro Max (simulator)

Test glass area size: 300 x 300, corner radius: 30

iOS Android

See complete comparisons for more.

Special thanks

S
Description
Compose Multiplatform Liquid Glass effect
Readme
233 MiB
0 Stars 1 Watchers 0 Forks
Languages
Kotlin 94.6%
DM 5.1%
Swift 0.3%