Q-Mobile / QGrid

🎛 QGrid: The missing SwiftUI collection view.
MIT License
1.64k stars 104 forks source link

Is there a way to make it so that the QGrid view doesn't take up the whole height of the screen? #36

Open joshuarobs opened 4 years ago

joshuarobs commented 4 years ago

In every grid I place, in the canvas preview, it takes up the whole screen of the device. Is there a way to limit this so that the height of the whole view is restricted to the items in the grid? i.e. to remove unnecessary white space

giiiita commented 4 years ago

How about calculating the height from content, rowCount, vSpace and vPadding and specifying it in the frame?