0

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?

Terus
  • 127
  • 1
  • 8
  • Here's the answer: https://stackoverflow.com/a/55706586/4427884 – Codetard May 28 '19 at 07:41
  • Possible duplicate of [IOS11 UIContextualAction Place the image color text](https://stackoverflow.com/questions/46398910/ios11-uicontextualaction-place-the-image-color-text) – Codetard May 28 '19 at 07:42

1 Answers1

0

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

Marshall
  • 141
  • 3
  • 9