Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Alpha as you swipe #6

Open
raghunandankavi2010 opened this issue Jul 17, 2022 · 0 comments
Open

Adding Alpha as you swipe #6

raghunandankavi2010 opened this issue Jul 17, 2022 · 0 comments

Comments

@raghunandankavi2010
Copy link

raghunandankavi2010 commented Jul 17, 2022

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,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant