I made an image for the button of a UIContexualAction using sketch but when I loaded the image onto a tableViewCell, the image turned out like below.
This is the code that was added to the UIContextualAction.
let action = UIContextualAction(style: .normal, title: "Guestlist") { (action, actionView ,completion) in
completion(true)
}
action.image = #imageLiteral(resourceName: "GuestList")
// action.backgroundColor = .purple
return action
}