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.
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.
Credits
DIFlowLayoutEngine is primarily the work of Daniel Inoa.
DIFlowLayoutEngine
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.
SwiftUI
Installation
To install using Swift Package Manager, add this to the dependencies section in your
Package.swift
file:Contributing
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.Credits
DIFlowLayoutEngine
is primarily the work of Daniel Inoa.