https://github.com/fluidgroup/swiftui-wraplayout
A custom layout built on top of SwiftUI's Layout API that lays elements out in multiple lines. Similar to flex-wrap in CSS, CollectionViewFlowLayout.
https://github.com/fluidgroup/swiftui-wraplayout
swiftui
Last synced: 4 months ago
JSON representation
A custom layout built on top of SwiftUI's Layout API that lays elements out in multiple lines. Similar to flex-wrap in CSS, CollectionViewFlowLayout.
- Host: GitHub
- URL: https://github.com/fluidgroup/swiftui-wraplayout
- Owner: FluidGroup
- License: mit
- Created: 2022-09-09T13:17:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-04T02:44:33.000Z (almost 2 years ago)
- Last Synced: 2025-06-12T19:03:50.595Z (about 1 year ago)
- Topics: swiftui
- Language: Swift
- Homepage:
- Size: 79.1 KB
- Stars: 39
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WrapLayout

A custom layout built on top of SwiftUI's Layout API that lays elements out in multiple lines.
Similar to flex-wrap in CSS, CollectionViewFlowLayout.
Much better performance rathar than using `GeometryReader`
## Requirements
Swift 5.7+.
SwiftUI requires [`Layout`](https://developer.apple.com/documentation/swiftui/layout)
## Instructions
```swift
WrapLayout {
...
}
```
## Installation
Supports Swift Package Manager
## License
MIT license.