when i implement below code :
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize{
let cellW = (ScreenWidth - 10 - 10 - 30) / 4
return CGSize(width: cellW, height: cellW * 1.5 )
}
by using sizeForItemAt method , i can draw frame what i want , but my custom collectionview cell can not update as wise , where did i miss , plz help me !!