Set properly a colored icon in UIContextualAction

174 Views Asked by At

I am using a TableView to list some images with descriptions. Additionally this images needs to be shared and deleted and theirfore I am using UIContextualAction. To the object I set the image for deleting like this:

deleteAction.image = UIImage(named: "delete")

Unfortunately in runtime I can see my image is colored white, but I need it grey. Why is this behaviour?

1

There are 1 best solutions below

0
Marshall On

Try this, i think it will help.
enter image description here