I'm trying to work with MongoDB Realm to import data from a database, and then pass that data from the homescreen view (UIHomeScreen) to another view (PlantDeviceListView). I've setup the Models, binding variables, and passed the data before successfully, but after refactoring some code, I'm not sure why I'm getting errors on the following code in SceneDelegate.swift:
let contentView = UIHomeScreen(sensors: sensordata)
error says: Cannot convert value of type 'sensordata.Type' to expected argument type 'sensordata'
sensordata is the Model of the object I am trying to import from realm, and it is a class Object.
In the UIHomeScreen itself, I have the variable set up as follows:
@ObservedObject var sensors: sensordata
Any idea what I might be doing wrong?