[https://itnext.io/programmatic-custom-collectionview-cell-subclass-in-swift-5-xcode-10-291f8d41fdb1] 그냥 이대로 하면 된다. 한가지 몰라서 실수 한 부분은 cv.register(UICollectionViewcell.self , forCellWithReuseIdentifier: "cell") 콜렉션 뷰에 셀을 등록 안하면 func collectionView( _ collectionView : UICollectionView, cellForItemAt indexPath : IndexPath) -> UICollectionViewCell{ let cell = collectionView.dequeueReusableCell(withRe..