Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ofthewolf/carouselsection

Carousel implementation with UICollectionViewCompositionalLayout
https://github.com/ofthewolf/carouselsection

carousel carousel-slider swift uicollectionviewcompositionallayout uikit

Last synced: 3 days ago
JSON representation

Carousel implementation with UICollectionViewCompositionalLayout

Awesome Lists containing this project

README

        

# 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](https://miro.medium.com/v2/resize:fit:1200/format:webp/1*vxXHzHoML1-pmFz0nP2Sng.gif)