- struct ModelsByCategoryGrid: View {
2. @Binding var showBrowse: Bool
3. let models = Models()
4. var body: some View {
5. VStack { ForEach(ModelCategory.allCases, id: \.self) { category in
- //Only display the grid if the category contains items
7. if let modelsByCategory = models.get(category: category) {
8. HorizontalGrid(showbrowse: $showBrowse, title: category.label, items: modelsByCategory) }
I GET AN ERROR FOR LINE 5 SAYING "MISSING ARGUMENT FOR PARAMETER IN #1 CALL"