paololeonardi / WaterfallGrid

A waterfall grid layout view for SwiftUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grid that fits contents?

nrbrook opened this issue · comments

I want to use WaterfallGrid to contain some buttons which are laid out in a grid depending on the size available. WaterfallGrid is in a VStack with a List and some other views. I want the grid to just fit the buttons, so to fit the content as tightly as possible, and disable scrolling. Is this possible?
Screenshot 2020-01-27 at 09 48 53

Hi @nrbrook, sorry the late reply!
I'm afraid is not possible to use the grid this way.
If the elements don't fit inside the grid frame, the grid becomes scrollable and the property cannot be disabled.