How to create grid of square items (for example like in iOS Photo Library) with SwiftUI?
I tried this approach but it doesn\'t work:
var body: some
Thinking in SwiftUI, there is a easy way :
struct MyGridView : View { var body: some View { List() { ForEach(0..<8) { _ in HStack { ForEach(0..<3) { _ in Image("orange_color") .resizable() .scaledToFit() } } } } }
}
SwiftUI enough if you want,you need forgot such as UIColectionView sometimes..