Change the content of ContentView.swift as follows:
import SwiftUI
import QGrid
struct Item: Identifiable {
let id = UUID()
}
struct ContentView: View {
let array = Array(repeating: Item(), count: 15)
var body: some View {
QGrid(array, columns: 3) { value in
Image("") // empty image is being used for simplicity. Using real image doesn't prevent the crash
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Environment
Steps to reproduce:
Change the content of
ContentView.swift
as follows:What do I expect
The app window resized.
What did I see
The app crashed with the following log: