Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-04T02:44:33.000Z (3 months ago)
- Last Synced: 2024-10-30T17:21:44.899Z (2 months ago)
- Topics: swiftui
- Language: Swift
- Homepage:
- Size: 79.1 KB
- Stars: 31
- 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.