Skip to content
forked from lucamegh/Niagara

Waterfall collection view compositional layout.

License

Notifications You must be signed in to change notification settings

syquandev/Niagara

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Niagara 🚿

Waterfall collection view compositional layout.

Niagara

Installation

Niagara is distributed using Swift Package Manager. To install it into a project, simply add it as a dependency within your Package.swift manifest:

let package = Package(
    ...
    dependencies: [
        .package(url: "https://github.com/lucamegh/Niagara", from: "1.0.0")
    ],
    ...
)

Usage

import Niagara

collectionView.collectionViewLayout = UICollectionViewCompositionalLayout.waterfall { indexPath in
    // resolve item size
}

Please check out the demo to see how to further customize your waterfall layouts.

About

Waterfall collection view compositional layout.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%