Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 558 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 558 Bytes

CarouselSection

Carousel implementation with UICollectionViewCompositionalLayout

Usage

private lazy var carouselSection: CarouselSection = {
    CarouselSection(collectionView: collectionView)
}()

private lazy var layout: UICollectionViewLayout = UICollectionViewCompositionalLayout { [weak self] sectionIndex, layoutEnvironment in
    guard let self else { return nil }
    return self.carouselSection.layoutSection()
}

Demo

Demo