collection view에서 cell에 배경image 넣는 방법

cell.backgroundView = UIImageView(image: UIImage(named: "photo1"))

UICollectionViewCell with rounded corners AND drop shadow not working

UICollectionViewCell with rounded corners AND drop shadow not working

How to set cell spacing and UICollectionView – UICollectionViewFlowLayout size ratio?

How to set cell spacing and UICollectionView – UICollectionViewFlowLayout size ratio?