This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| import CoreData | |
| class CoreDataManager { | |
| // MARK: - Core Data stack | |
| static let sharedInstance = CoreDataManager() | |
| private lazy var applicationDocumentsDirectory: URL = { | |
| // The directory the application uses to store the Core Data store file. This code uses a directory named in the application's documents Application Support directory. | |
| let urls = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) |