Combine horizontal and vertical stacking - auto-layout

I want to create an auto-layout that stacks cards horizontally until it reaches the border of the container, then starts a new row underneath (vertically) and continues to stack items in that row horizontally. As you can see in the screenshot, my horizontal constraint is set to “fixed width” (have also tried fill container) and my vertical constraint to “hug contents”. When I add more cards, the container overflows. Is there a function for this that I’m missing, or a hack that people use (assuming I’m not the only one trying to do this). The only info I’ve been able to find is this forum from 2021 which doesn’t have any answers Auto-Layout -> Make a Grid.

A post was merged into an existing topic: Wrap elements in Auto Layout to multiple lines