This engine computes the positions of items within a containing bound adopting a flow layout, where items are arranged horizontally and wrapped vertically.
It's written in vanilla Swift with no dependecies and can be used to power layouts on UIKit, SwiftUI, or any other Swift-based framework.
- Interface: https://github.com/danielinoa/DIFlowLayout
- Demo: https://github.com/danielinoa/DIFlowLayoutDemo
To install using Swift Package Manager, add this to the dependencies section in your Package.swift
file:
.package(url: "https://github.com/danielinoa/DIFlowLayoutEngine.git", .branch("main"))
Feel free to open an issue if you have questions about how to use DIFlowLayoutEngine
, discovered a bug, or want to improve the implementation or interface.
DIFlowLayoutEngine
is primarily the work of Daniel Inoa.