After watching the WWDC Keynote today, my biggest ...
# compose-ios
m
After watching the WWDC Keynote today, my biggest question is: how do we get Liquid Glas effect in Compose Multiplatform iOS? 😅 My first guess is to get such buttons, a mix of: • Haze for the buttons background • A custom border modifier for a border line consisting of a gradient based on the background But how do we get the 3d effect on the button‘s edges? Anyone has better ideas?
h
Expect actual, where you implement the iOS side of it natively and just wrap it in Composable while on Android welp, Haze with some overlays probably
K 1
s
write custom shader
☝🏻 1
a
The Skia shaders dont allow accessibg pixel data outside of the surface AFAIK. Thats why box shadow is also such a hassle. Box shadows, refraction and real blur require access to underlying surfaces outside of the current surface bounds
s
It’s not really a problem. For example, Haze handles this by simply extending the effect area. If more pixels need to be captured, just expand that area — simple as that.
a
That makes sense
c
CALF library?