struct ModelsByCategoryGrid: View {
@Binding var showBrowse: Bool
let models = Models()
var body: some View {
VStack { [ONE ERROR HERE SAYS "Type'(_) -> ()' cannot conform to 'View']
ForEach(ModelCategory.allCases, id: .self); { category in [2 ERRORS HERE SAY 1: "Generic parameter 'Content' could not be inferred" 2: "Missing argument for parameter 'content' in call
//Only display the grid if the category contains items
if let modelsByCategory = models.get(category: category) {
HorizontalGrid(showbrowse: $showBrowse, title: category.label, items: modelsByCategory)
}
}
}
}
}
1
0
624