I am trying to build a dynamic grid. This grid is supposed to hold a dynamic number of "items", which can be deleted and added by the user. I want the grid to extend over the entire width of the devices screen. The height of the grid shall depend on the number of "items" in it. Each row in the grid shall hold as many "items" as possible without extending over the screen width. Each "items" text should be displayed in its entirety and not show something like "Chees..." instead of "Cheese Burger". If the row is full, any further items shall be displayed in the next grid row and so on. I am quite new to SwiftUI and programming in generell and i dont know what to do here. It seems like rather a common thing to do.PLease help. Id really appreciate it. THanks in advance
Asked
Active
Viewed 26 times
-1
-
Check out [SwiftUI HStack with Wrap](https://stackoverflow.com/q/58842453/20386264) – Benzy Neez Aug 26 '23 at 11:08
-
Does this answer your question? [SwiftUI HStack with Wrap](https://stackoverflow.com/questions/58842453/swiftui-hstack-with-wrap) – Timmy Aug 26 '23 at 14:04
-
Thank you both of you, still new at this, helped a lot – Makani Aug 26 '23 at 17:18