skip to Main Content

How to make each item clickable to show detailed view in LazyVGrid? – Ios swift

// // ContentView.swift // DemoProject import SwiftUI import CoreData struct ContentView: View { @Environment(.managedObjectContext) private var viewContext @FetchRequest( sortDescriptors: [NSSortDescriptor(keyPath: Item.timestamp, ascending: true)], animation: .default) private var items: FetchedResults<Item> private var gridItemLayout = [GridItem(.adaptive(minimum: 100))] @StateObject private var viewModel =…

VIEW QUESTION
Back To Top
Search