I am trying to layout a UICollectionView like the mock-up I have drawn in the photo(also showing the index of each item).
I did some research on UICollectionViewLayout and also implement some of the methods but the result is nothing

enter code here
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
        let padding: CGFloat =  50
        let collectionViewSize = collectionView.frame.size.width - padding
        if indexPath.row == 3{
            return CGSize(width: collectionViewSize, height: collectionViewSize/2)
        }
        else{
        return CGSize(width: collectionViewSize/2, height: collectionViewSize/2)
        }
    }
using above function i get result shown in image...but i not want 3rd number cell
 
    