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

Rotating Emojis #1

Open
udarts opened this issue Jan 15, 2022 · 1 comment
Open

Rotating Emojis #1

udarts opened this issue Jan 15, 2022 · 1 comment

Comments

@udarts
Copy link

udarts commented Jan 15, 2022

How can I rotate Emojis?

I have been trying to create it, but unsuccesfull.

Any assistance?

@JHeisecke
Copy link

The animation for rotating emojis is in the struct CardView with .rotationEffect(Angle.degrees(card.isMatched ? 360 : 0)) and also, to rotate the second emoji first it has to be present on the screen, therefore, in Cardify the content is set out of the if rotation but with an opacity so it can't be seen content.opacity(rotation < 90 ? 1 : 0) like that

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

2 participants