A custom layout built on top of SwiftUI's Layout API that lays elements out in multiple lines

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

Instructions

WrapLayout {
  ...
}

Installation

Supports Swift Package Manager

License

MIT license.

GitHub

View Github