removed unused code

This commit is contained in:
Tondapu, Alekhya 2021-07-22 00:01:53 +05:30
parent 37d8009c41
commit 707f256a39

View File

@ -387,10 +387,6 @@ open class Carousel: View {
}
extension Carousel: UICollectionViewDelegateFlowLayout {
open func numberOfSections(in collectionView: UICollectionView) -> Int {
return 1
}
open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
let itemWidth = collectionView.bounds.width * itemWidthPercent
return CGSize(width: itemWidth, height: collectionView.bounds.height)