I'm new to iOS development so I apologize in advance for any incorrect terminology.
I've implemented a custom layout using a combination of VStacks and HStacks and it works fine. However, I would like to make generic and reusable.
This is what I'm currently doing:
UniformGrid(rows: 5, columns: 5, content: [String])
The problem with that is that I have hardcoded what the child views are.
What I want is:
UniformGrid(rows: 5, columns: 5) {
Text("Dogs")
Image("cats")
...
}
Can anyone give me some direction on how to achieve this?