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.
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.