Set selected color of cell in UiCollectionView in swift
<p>I am using collectionview to display data.</p>

<p>each cell's selected and unselected color is there </p>

<p>but i want to set default color of first cell in collectionview.</p>

<p><a href="https://i.stack.imgur.com/NJFTr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NJFTr.png" alt="enter image description here"></a></p>

<p>if there are 10 data. my first cell should be like in screenshot</p>

<p>how to achieve this?
when i set color at indexpath this issue occurs</p>

<p><a href="https://i.stack.imgur.com/bC9P8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bC9P8.png" alt="enter image description here"></a></p>