♻️ Refactored CoreData access

This commit is contained in:
2021-02-10 20:26:53 +01:00
committed by Patrick Müller
parent f50ba8f19d
commit b689a7bbf1
10 changed files with 132 additions and 72 deletions
@@ -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