Swiftpack.co - danielinoa/DIFlowLayout as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by danielinoa.
danielinoa/DIFlowLayout v1.0.0
A layout where subviews are arranged horizontally and wrapped vertically.
⭐️ 28
🕓 9 weeks ago
iOS
.package(url: "https://github.com/danielinoa/DIFlowLayout.git", from: "v1.0.0")

DIFlowLayout

“DIFlowLayout

DIFlowLayout is a SwiftUI Layout implementation where subviews are arranged horizontally and wrapped vertically, similar to how text behaves in a multiline label.

DIFlowLayout works by first grouping subviews into rows based on the proposed container width, subviews' intrinsic size, and spacing values. Subviews, once grouped into rows, can be vertically and horizontally aligned within their row.

Demo

https://github.com/danielinoa/DIFlowLayoutDemo

https://user-images.githubusercontent.com/972877/192718939-f07ae806-edb9-414c-b7d8-67fe1fec9479.mp4

Installation

To install using Swift Package Manager, add this to the dependencies section in your Package.swift file:

.package(url: "https://github.com/danielinoa/DIFlowLayout.git", .branch("main"))

Contributing

Feel free to open an issue if you have questions about how to use DIFlowLayout, discovered a bug, or want to improve the implementation or interface.

Credits

DIFlowLayout is primarily the work of Daniel Inoa.

GitHub

link
Stars: 28
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

First version
9 weeks ago

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