Skip to content

Conversation

@ShouravRakshit
Copy link
Contributor

No description provided.

Copy link

@kevin-van kevin-van left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve comments before merging :)

}
}

private func renderTextWithEmoji(_ emoji: String, _ text: String) -> HStack<TupleView<(Text, Text)>> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This stuff just got moved to the bottom? No code changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes pretty much

.shadow(color: isTopCard ? getShadowColor() : (isSecondCard && dragOffset.width != 0 ? Color.gray.opacity(0.2) : Color.clear), radius: 10, x: 0, y: 3)
.shadow(
color: isTopCard
? getShadowColor()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its typically not good practice to do nested ternary expressions.

Maybe comment what its doing since its verbose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this happened when I pasted this code as the original one was not working so yeah.

Copy link
Collaborator

@anshi2500 anshi2500 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ShouravRakshit
Copy link
Contributor Author

creating the pr in the new one

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

Successfully merging this pull request may close these issues.

3 participants