What is the difference between Modifier.background(shape = ..) and Modifier.clip(..)
a
Alex Styl
02/11/2025, 7:29 AM
they are two separate things
background with a shape will draw the given color in the given shape.
clip will "cut" the corners of your composable with the given shape. nothing will be able to be drawn outside of it