Hi
I am displaying Images in collecction View horizontally I want to give white spacing between images.
cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cell2", for: indexPath) as UICollectionViewCell
let dict = arrImages2.object(at: indexPath.row) as? NSDictionary
var imageView : UIImageView
imageView = UIImageView(frame:CGRect(x: 0, y: 0, width: cell.frame.size.width , height: cell.frame.size.height))
let url = URL(string: dict?.value(forKey: "aimg") as! String)
imageView.kf.setImage(with: url)
imageView.contentMode = UIViewContentMode.scaleAspectFill
Thanks