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

Round Corner #345

Open
elenaAylon opened this issue Nov 26, 2019 · 1 comment
Open

Round Corner #345

elenaAylon opened this issue Nov 26, 2019 · 1 comment

Comments

@elenaAylon
Copy link

You have the option for corner swipe buttons
cell.layer.cornerRadius = 50
cell.backgroundColor = UIColor.gray
cell.clipsToBounds = true
cell.swipeBackgroundColor = UIColor.gray

BUT how can I color the "swipeBackgroundColor" from both sides?
I have this result!

2019-11-26

@elenaAylon
Copy link
Author

And when I add this:
cell.layer.masksToBounds = false;

The button has not round corners anymore.

I want to add this because I want to add shadow around the cell.
cell.layer.shadowOpacity = 0.18;
cell.layer.shadowOffset = CGSizeMake(0, 2);
cell.layer.shadowColor = [UIColor blackColor].CGColor;

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