UITableView Cells Separated and with Rounded Corners

148 views Asked by At

The title may seem odd but I am trying to make a to-do list app where the tasks are in a UITableView that looks like Wunderlist's where it doesn't touch the edges and has rounded corners with spacing between each task. I am new to Xcode and cannot find any answers online.

1

There are 1 answers

0
Sumit Oberoi On BEST ANSWER

Create view inside a tableview cell and set its bottom constraint to the space you want to give and on that view apply corner radius using

view.layer.cornerRadius = 10; view.layer.masksToBounds = true;