@main
struct List15ProjectApp: App {
    
    @StateObject private var dataModel = DataModel()
    
    var body: some Scene {
        WindowGroup {
            ContentView()
                .environmentObject(dataModel)
                .onAppear(perform: {
                    // hack to disable iPad autolayout warnings when text fields are being used
                    UserDefaults.standard.setValue(false, forKey: "_UIConstraintBasedLayoutLogUnsatisfiable")
                })
        }
    }
}