Skip to content

Commit 7dbd771

Browse files
authored
Merge pull request MortimerGoro#284 from MortimerGoro/cell_corners
Add rounded corners documentation
2 parents 48b4972 + 920cec1 commit 7dbd771

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

+11
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)