I have my ItemModel and my Contentview, but when run the program the view doesn't update with the new quantity in real time. How do I get the model and the view to "talk"
import Foundation
import SwiftUI
class Item: ObservableObject {
    var name: String
    @Published var qty: Int
    
    init(name: String, qty: Int) {
        self.name = name
        self.qty = qty
    }
    
}
var metzScissor = Item(name: "Metz Scissor", qty: 5)
import SwiftUI
struct ContentView: View {
    
    var body: some View {
        
        NavigationView {
        
        VStack {
            Text("Items In Stock")
                .font(.title)
                .padding()
            Spacer()
            NavigationLink (
                destination: ItemDetailView(),
             label: {
                 Text(metzScissor.name)
            })
            Spacer()
            }
        }
    }
}
struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
Do I need to make an instance of my model class within the view file?

@StateObjectand@ObservedObject(the Apple SwiftUI tutorials might be a good place to start). You haven't actually shown any code that updates a quantity, but those property wrappers I mentioned will be the key to getting it to work when you do have some code that mutates the item.metzScissordon't work as you are expecting. SwiftUI requires its wrappers so it knows when to reload theView,@StateObjectis used to initialize and@ObservedObjectand@EnvironmentObjectare used in the children.