I know when we set the height of cell to 91 it shows both image and text vertically but I want horizontally side by side without setting height.

2

There are 2 best solutions below

0
Valentina Konatar On

You won't be able to do it with UIContextualAction. Try making your own custom component if you really need it to look like that.

0
Siva Kumar Aketi On

there is trick we can do that in existing image view in swipe like deleteAction.image = textToImage(inImage: UIImage(named: imageName)!, drawText: imageTitle, atPoint: CGPoint(x: 0, y: 0)) you need to create your own function textToImage