0

Is it is possible to add spacing between the UITableViewCell and UITableViewRowAction and is possible to add corner radius to UITableViewRowAction as per attached UI. Find attachment Here!!

Parthee Vs
  • 31
  • 3

2 Answers2

0

Directly you cannot add space between UITableViewCells.You should use some tricky points to achieve this.I think you can get an idea from this.

Some Points

Dilan
  • 2,610
  • 7
  • 23
  • 33
0

You can access that view like that:

override func layoutSubviews() {
    super.layoutSubviews()
    if let deleteView = tableView.subviews
        .first(where: { $0.classForCoder.description() == "UISwipeActionPullView" }) {
        deleteView.layer.cornerRadius = 10
    }
}

PS! Might not be future proof, if apple changes anything. Maybe helps you.

Samps
  • 799
  • 6
  • 12