mrlegowatch / GarageStorageSwift

A Swift implementation of GarageStorage. Provides a convenient way to store any kind of data in a repository backed by Core Data.
MIT License
8 stars 1 forks source link

Adopt NSPersistentContainer #25

Closed mrlegowatch closed 2 months ago

mrlegowatch commented 3 months ago

NSPersistentContainer is available as of iOS 10 or later. Refactor the CoreDataStack class in GarageStorage to a protocol, and then conform NSPersistentContainer to this protocol and use that, so that GarageStorage can eliminate the code related to CoreDataStack.