I am trying to make a UICollectionviewCell
as per the following design
I have set corner radius for the cell, but when data is loaded on the collectonview
the imageview
is not getting rounded corners. The output that i am getting is as follows
Rounded corners are getting applied to the cells but not to the images. Here is the code that i am applying. The code is applied on collectionView
(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
cell.layoutIfNeeded()
cell.layer.cornerRadius = 15
cell.imageView.clipsToBounds = true
cell.layer.masksToBounds = true
Can someone help me to solve this issue.
Thanks in advance....