I had the same problem with my project, so I made a workaround for this. I think this is good for you.
When I look at the table cell on the left just for the width of the image, it works fine.

But when I scroll the table cell more than the width of the image, the display of the table cell looks like this:

This is because I use the backgroundColor property to add an image.
copyButton.backgroundColor = UIColor(patternImage: UIImage(named: "bfaCopyIcon.png")!)
So, to fix this, I am increasing the width of the image as well as the width of the table.
old image → → → → → → new image
→> 
this is a new view:

This is my sample code:
func tableView(_ tableView: UITableView, editActionsForRowAt: IndexPath) -> [UITableViewRowAction]? { let copyButton = UITableViewRowAction(style: .normal, title: "") { action, index in print("copy button tapped") } copyButton.backgroundColor = UIColor(patternImage: UIImage(named: "bfaCopyIcon.png")!) let accessButton = UITableViewRowAction(style: .normal, title: "") { action, index in print("Access button tapped") } accessButton.backgroundColor = UIColor(patternImage: UIImage(named: "bfaAccess.png")!) return [accessButton, copyButton] }
Isuru Jayathissa Mar 22 '18 at 7:26 2018-03-22 07:26
source share