Array cannot be constructed because it has no accessible initializers
I am having trouble with a CoreData fetchRequest:
I am building an app that uses the BLE protocol to connect the iPhone with peripheral devices. The goal is to display saved peripheral devices and newly discovered devices in a View called DeviceListView.
DeviceListView is set up with two Lists, one for new devices, which pulls the newly discovered peripherals from a BLECentralManager file, and one for the saved peripherals which uses an instance of CoreDataController to fetch the devices saved in CoreData. The devices we’ve connected to are saved in Core Data (entity named: “Device”). The issue happens in my CoreDataController file: