Hello,
I am trying to create an HStack with an array of my custom view that has images and information taken from my database model, that when it reaches the end of the window, it takes the rest of the cells (my custom views) below to the next line. Then if you resize the window, or change the size of the cells (through a slider) it should reorder the cells so they fit the window without needing horizontal scrolling.
I have made numerous attempts to try to find a way to do this, but I couldn't find any way to make it work correctly.
I am developing a macOS app in macOS 10.15, so I only have SwiftUI 1 available.
Could someone help me?
I am trying to create an HStack with an array of my custom view that has images and information taken from my database model, that when it reaches the end of the window, it takes the rest of the cells (my custom views) below to the next line. Then if you resize the window, or change the size of the cells (through a slider) it should reorder the cells so they fit the window without needing horizontal scrolling.
I have made numerous attempts to try to find a way to do this, but I couldn't find any way to make it work correctly.
I am developing a macOS app in macOS 10.15, so I only have SwiftUI 1 available.
Could someone help me?