Answers for "how to set the size of collection view cell to eitire collectionView in swift"

1

swift collection view cell size

extension YourViewController: UICollectionViewDelegateFlowLayout {
    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
        return CGSize(width: screenWidth, height: screenWidth)
    }
}
Posted by: Guest on March-25-2020

Code answers related to "how to set the size of collection view cell to eitire collectionView in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language