Skip to content

Commit

Permalink
Add rounded corners documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
karthironald authored and MortimerGoro committed Jun 17, 2017
1 parent 48b4972 commit 920cec1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,17 @@ Expandable button events are triggered automatically when the user ends the swip
@property (nonatomic, assign) CGFloat threshold;
@end
```
### Rounded corners and swipe buttons
MGSwipeTableCell supports rounded corners. Example:

```objc
cell.layer.cornerRadius = 50
cell.backgroundColor = UIColor.gray
cell.clipsToBounds = true
cell.swipeBackgroundColor = UIColor.gray
```
<p align="center"><img src="https://github.com/MortimerGoro/MGSwipeTableCell/blob/master/readme-assets/RoundTableViewCell.png" width="30%" /></p>


## License

Expand Down
Binary file added readme-assets/RoundTableViewCell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 920cec1

Please sign in to comment.