Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (24 loc) · 896 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 896 Bytes

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.