Skip to content

Commit 920cec1

Browse files
karthironaldMortimerGoro
authored andcommitted
Add rounded corners documentation
1 parent 48b4972 commit 920cec1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,17 @@ Expandable button events are triggered automatically when the user ends the swip
185185
@property (nonatomic, assign) CGFloat threshold;
186186
@end
187187
```
188+
### Rounded corners and swipe buttons
189+
MGSwipeTableCell supports rounded corners. Example:
190+
191+
```objc
192+
cell.layer.cornerRadius = 50
193+
cell.backgroundColor = UIColor.gray
194+
cell.clipsToBounds = true
195+
cell.swipeBackgroundColor = UIColor.gray
196+
```
197+
<p align="center"><img src="https://github.com/MortimerGoro/MGSwipeTableCell/blob/master/readme-assets/RoundTableViewCell.png" width="30%" /></p>
198+
188199

189200
## License
190201

readme-assets/RoundTableViewCell.png

89.7 KB
Loading

0 commit comments

Comments
 (0)