-
Notifications
You must be signed in to change notification settings - Fork 35
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
fix: icon placement in rtl layouts #33
base: trunk
Are you sure you want to change the base?
Conversation
great this commit solved the issue i had |
ping @saket for reviewing 🤞 |
* Use 3rd-party swipe library * Fix RTL with open PR - saket/swipe#33
@saket bump, can u merge it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, and apologies for not reviewing this earlier!
} | ||
} | ||
.background(color = backgroundColor), | ||
horizontalArrangement = if (action.isOnRightSide) Arrangement.Start else Arrangement.End, | ||
horizontalArrangement = if (action.isOnRightSide) Arrangement.Absolute.Left else Arrangement.Absolute.Right, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a screenshot test to verify this? Here are some examples: https://github.com/saket/swipe/blob/trunk/library/src/test/kotlin/me/saket/swipe/SwipeableActionsBoxTest.kt#L43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if I did this correctly. Please take another look!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep this looks good, thank you!
Fix #32
Context: The offsets from swipings are absolute, so the placement of icons should be as well