I'm working with a UICollectionView where I have to set a small gap between the margin and the cell of UICollectionView. I tried adjusting the inset of the flow layout like this but I couldn't get what I wanted.
let flow = resturantCollection.collectionViewLayout as! UICollectionViewFlowLayout
flow.sectionInset = UIEdgeInsetsMake(0, 10, 0, 10)
Please look at the image to get an idea of what I'm trying to do.
I'm trying to set a small gap between the cell and the margin. Is there anyway to do this?