♻️ Refactored CoreData access

This commit is contained in:
Paddy authored and Patrick Müller committed 2021-02-10 20:26:53 +01:00
1 parent f50ba8f19d
commit b689a7bbf1
10 files changed
+132 -72

No files matched your search

@@ -9,6 +9,7 @@ import Foundation
import CoreData
class UtilityFunctions {
// DEPRECATED, replaced by the respective getSpecified() method of each CoreData object
public class func getCoreDataObject(entity: String, sortDescriptors: [NSSortDescriptor] = [], searchPredicate: NSPredicate? = nil) -> [NSManagedObject]{
let managedContext =
PersistenceController.shared.context