A flexible grid layout view for SwiftUI.
If you are fine to only support i(Pad)OS 14, macOS 11, tvOS 14, watchOS 7 respectively those ^--
are definitely the way to go.
If you want to support i(Pad)OS 13, macOS 10.15, tvOS 13, watchOS 6 keep on reading.
📱 iOS 13+, 💻 macOS 10.15+, 📺 tvOS 13+, ⌚ watchOS 6+
Simply pass the minimum width the grid cells should have and the spacing between them and it will adjust depending on the available width.
So writing this: