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

ActionsView is above cell's contentView #59

Closed
dimitris-c opened this issue Jul 3, 2017 · 4 comments
Closed

ActionsView is above cell's contentView #59

dimitris-c opened this issue Jul 3, 2017 · 4 comments

Comments

@dimitris-c
Copy link

Currently, any actions added to the cell are added above the cell's contentView.
I understand the reason behind this but with the current implementation, you can't achieve an effect like the one below.

screen shot 2017-07-03 at 10 15 47

We could bring the contentView to the front when the configureActionsView on SwipeTableViewCell method is called.

@kurabi
Copy link
Member

kurabi commented Jul 3, 2017

@dimitris-c To be clear, you would like to add a drop shadow to the contentView and hence would like the contentView at the top? Have you tried adding an inner shadow to the action it self instead?

@dimitris-c
Copy link
Author

@kurabi I thought an Action has limited features as it doesn't expose such methods/functionality. Is that correct?

@csr
Copy link

csr commented Jul 12, 2017

Would love to know how to access to the action's layer to add a shadow, @kurabi, as well. Thank you!

@kurabi
Copy link
Member

kurabi commented Sep 8, 2017

Add a SwipeActionTransitioning transitionDelegate on the action you are interested in. SwipeActionTransitioningContext will give you access to the action button where you can manipulate it.

@kurabi kurabi closed this as completed Sep 8, 2017
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

3 participants