Open ferb120 opened 1 year ago
I don't know the bug , since I don't have the new device But I tried to custom the cell I think you can try add "sizeForItemAt" to UICollectionViewDelegateFlowLayout The tricky part is "-1"
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
let wid = (view.bounds.size.width - (padding * 2) - 1 - spaceX * CGFloat(cellPerLine - 1)) / CGFloat(cellPerLine)
return CGSize(width: wid, height: wid)
}
Hope it helps