Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

# WrapLayout

CleanShot 2022-09-10 at 00 45 09@2x

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.