DIFlowLayout

1.0.1

A SwiftUI Layout where subviews are arranged horizontally and wrapped vertically.
danielinoa/DIFlowLayout

What's New

Use DIFlowLayoutEngine

2023-01-05T10:40:08Z

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

diflowlayoutdemo.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.

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

Last updated: Wed Dec 18 2024 18:06:20 GMT-1000 (Hawaii-Aleutian Standard Time)