I am facing this issue while setting gradient color to view inside the collection view
When its plotted at first time its fine. but when I select some option and reload collection for the same it's happening like the second image.
viccalexander/Chameleon (https://github.com/viccalexander/Chameleon)


Try below code, might help you
And inside your cell simply:
Add this line only in Xib file otherwise when cell be reload then is add multiple Gradient in cell self.addGradientBackground(firstColor: .green, secondColor: .blue)
Reference - How to make cells have a gradient background?