A Waterfall View For SwiftUI
-
iOS 13.0+
-
Xcode 11.0+
-
Swift 5.1+
Using Xcode 11, go to File -> Swift Packages -> Add Package Dependency and enter https://github.com/TomFrank/WaterFallView
Example
A waterfall views of type Card from a collection of Identifiable data .
ScrollView {
WaterFallView(cards) {
CardView(card: $0)
}
}WaterFallView was inspired by the following projects:
-
WaterfallGrid - https://github.com/paololeonardi/WaterfallGrid
-
The SwiftUI Lab - https://swiftui-lab.com
WaterFallView is available under the MIT license. See the LICENSE file for more info.
