twyper
twyper copied to clipboard
Adding Alpha as you swipe
Is it good to have alpha as well when we drag the card?
Something like
override val alphaValue: Float
get() = 1 - (abs(swipeX.value)/ (screenWidth/2))
and
.graphicsLayer(alpha = cardController.alphaValue,