Swiftpack.co - lucamegh/Niagara as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by lucamegh.
lucamegh/Niagara 1.0.0
Waterfall collection view compositional layout.
⭐️ 22
🕓 2 years ago
iOS
.package(url: "https://github.com/lucamegh/Niagara.git", from: "1.0.0")

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.

GitHub

link
Stars: 22
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Niagara 1.0.0
2 years ago

The first release of Niagara.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics